| 1 |
// Copyright (c) Microsoft. All rights reserved. |
| 2 |
// Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| 3 |
|
| 4 |
#include "azure_c_shared_utility/lock.h" |
| 5 |
#include "azure_c_shared_utility/xlogging.h" |
| 6 |
#include "azure_c_shared_utility/condition.h" |
| 7 |
#include "rtos.h" |
| 8 |
|
| 9 |
COND_HANDLE Condition_Init(void) |
| 10 |
{ |
| 11 |
return NULL; |
| 12 |
} |
| 13 |
|
| 14 |
COND_RESULT Condition_Post(COND_HANDLE handle) |
| 15 |
{ |
| 16 |
COND_RESULT result; |
| 17 |
if (handle == NULL) |
| 18 |
{ |
| 19 |
result = COND_INVALID_ARG; |
| 20 |
} |
| 21 |
else |
| 22 |
{ |
| 23 |
result = COND_ERROR; |
| 24 |
} |
| 25 |
return result; |
| 26 |
} |
| 27 |
|
| 28 |
COND_RESULT Condition_Wait(COND_HANDLE handle, LOCK_HANDLE lock, int timeout_milliseconds) |
| 29 |
{ |
| 30 |
COND_RESULT result; |
| 31 |
if (handle == NULL) |
| 32 |
{ |
| 33 |
result = COND_INVALID_ARG; |
| 34 |
} |
| 35 |
else |
| 36 |
{ |
| 37 |
result = COND_ERROR; |
| 38 |
} |
| 39 |
return result; |
| 40 |
} |
| 41 |
|
| 42 |
void Condition_Deinit(COND_HANDLE handle) |
| 43 |
{ |
| 44 |
if (handle != NULL) |
| 45 |
{ |
| 46 |
} |
| 47 |
} |