Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
threads_platform.h
00001 /* 00002 * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"). 00005 * You may not use this file except in compliance with the License. 00006 * A copy of the License is located at 00007 * 00008 * http://aws.amazon.com/apache2.0 00009 * 00010 * or in the "license" file accompanying this file. This file is distributed 00011 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 00012 * express or implied. See the License for the specific language governing 00013 * permissions and limitations under the License. 00014 */ 00015 00016 #include "threads_interface.h" 00017 #ifdef _ENABLE_THREAD_SUPPORT_ 00018 #ifndef IOTSDKC_THREADS_PLATFORM_H_H 00019 #define IOTSDKC_THREADS_PLATFORM_H_H 00020 00021 #ifdef __cplusplus 00022 extern "C" { 00023 #endif 00024 00025 #include <pthread.h> 00026 00027 /** 00028 * @brief Mutex Type 00029 * 00030 * definition of the Mutex struct. Platform specific 00031 * 00032 */ 00033 struct _IoT_Mutex_t { 00034 pthread_mutex_t lock; 00035 }; 00036 00037 #ifdef __cplusplus 00038 } 00039 #endif 00040 00041 #endif /* IOTSDKC_THREADS_PLATFORM_H_H */ 00042 #endif /* _ENABLE_THREAD_SUPPORT_ */ 00043
Generated on Tue Jul 12 2022 19:02:38 by
1.7.2