Changes to enabled on-line compiler

Committer:
JMF
Date:
Wed May 30 20:59:51 2018 +0000
Revision:
0:082731ede69f
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
JMF 0:082731ede69f 1 /*
JMF 0:082731ede69f 2 * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
JMF 0:082731ede69f 3 *
JMF 0:082731ede69f 4 * Licensed under the Apache License, Version 2.0 (the "License").
JMF 0:082731ede69f 5 * You may not use this file except in compliance with the License.
JMF 0:082731ede69f 6 * A copy of the License is located at
JMF 0:082731ede69f 7 *
JMF 0:082731ede69f 8 * http://aws.amazon.com/apache2.0
JMF 0:082731ede69f 9 *
JMF 0:082731ede69f 10 * or in the "license" file accompanying this file. This file is distributed
JMF 0:082731ede69f 11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
JMF 0:082731ede69f 12 * express or implied. See the License for the specific language governing
JMF 0:082731ede69f 13 * permissions and limitations under the License.
JMF 0:082731ede69f 14 */
JMF 0:082731ede69f 15
JMF 0:082731ede69f 16 #include "threads_interface.h"
JMF 0:082731ede69f 17 #ifdef _ENABLE_THREAD_SUPPORT_
JMF 0:082731ede69f 18 #ifndef IOTSDKC_THREADS_PLATFORM_H_H
JMF 0:082731ede69f 19 #define IOTSDKC_THREADS_PLATFORM_H_H
JMF 0:082731ede69f 20
JMF 0:082731ede69f 21 #ifdef __cplusplus
JMF 0:082731ede69f 22 extern "C" {
JMF 0:082731ede69f 23 #endif
JMF 0:082731ede69f 24
JMF 0:082731ede69f 25 #include <pthread.h>
JMF 0:082731ede69f 26
JMF 0:082731ede69f 27 /**
JMF 0:082731ede69f 28 * @brief Mutex Type
JMF 0:082731ede69f 29 *
JMF 0:082731ede69f 30 * definition of the Mutex struct. Platform specific
JMF 0:082731ede69f 31 *
JMF 0:082731ede69f 32 */
JMF 0:082731ede69f 33 struct _IoT_Mutex_t {
JMF 0:082731ede69f 34 pthread_mutex_t lock;
JMF 0:082731ede69f 35 };
JMF 0:082731ede69f 36
JMF 0:082731ede69f 37 #ifdef __cplusplus
JMF 0:082731ede69f 38 }
JMF 0:082731ede69f 39 #endif
JMF 0:082731ede69f 40
JMF 0:082731ede69f 41 #endif /* IOTSDKC_THREADS_PLATFORM_H_H */
JMF 0:082731ede69f 42 #endif /* _ENABLE_THREAD_SUPPORT_ */
JMF 0:082731ede69f 43