* Braces around subobject of initialization warning fix
* Fix warning
* Update lifo-semaphore.h
* Update lifo-semaphore.h
* Update lifo-semaphore.h
* Remove unnecessary braces
* Update lifo-semaphore.c
* Update lifo-semaphore.c
Co-authored-by: Ryan Lucia <ryan@luciaonline.net>
int32_t
mono_lifo_semaphore_timed_wait (LifoSemaphore *semaphore, int32_t timeout_ms)
{
- LifoSemaphoreWaitEntry wait_entry = { 0 };
+ LifoSemaphoreWaitEntry wait_entry = {0};
mono_coop_cond_init (&wait_entry.condition);
mono_coop_mutex_lock (&semaphore->mutex);
typedef struct _LifoSemaphoreWaitEntry LifoSemaphoreWaitEntry;
struct _LifoSemaphoreWaitEntry {
- MonoCoopCond condition;
- int signaled;
LifoSemaphoreWaitEntry *previous;
LifoSemaphoreWaitEntry *next;
+ MonoCoopCond condition;
+ int signaled;
};
struct _LifoSemaphore {