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.
Dependencies: EthernetInterface NTPClient iothub_amqp_transport iothub_client mbed-rtos mbed
Fork of iothub_client_sample_amqp by
condition_rtx_mbed.cpp
00001 // Copyright (c) Microsoft. All rights reserved. 00002 // Licensed under the MIT license. See LICENSE file in the project root for full license information. 00003 00004 #include <cstdlib> 00005 #ifdef _CRTDBG_MAP_ALLOC 00006 #include <crtdbg.h> 00007 #endif 00008 00009 #include "azure_c_shared_utility/lock.h" 00010 #include "azure_c_shared_utility/xlogging.h" 00011 #include "azure_c_shared_utility/condition.h" 00012 #include "rtos.h" 00013 00014 COND_HANDLE Condition_Init(void) 00015 { 00016 return NULL; 00017 } 00018 00019 COND_RESULT Condition_Post(COND_HANDLE handle) 00020 { 00021 COND_RESULT result; 00022 if (handle == NULL) 00023 { 00024 result = COND_INVALID_ARG; 00025 } 00026 else 00027 { 00028 00029 } 00030 return COND_ERROR; 00031 } 00032 00033 COND_RESULT Condition_Wait(COND_HANDLE handle, LOCK_HANDLE lock, int timeout_milliseconds) 00034 { 00035 COND_RESULT result; 00036 if (handle == NULL) 00037 { 00038 result = COND_INVALID_ARG; 00039 } 00040 else 00041 { 00042 result = COND_ERROR; 00043 } 00044 return result; 00045 } 00046 00047 void Condition_Deinit(COND_HANDLE handle) 00048 { 00049 if (handle != NULL) 00050 { 00051 } 00052 }
Generated on Tue Jul 12 2022 12:43:18 by
