Differences From Artifact [d4d414aa35]:
- File
src/condition.h
— part of check-in
[5358e9ea6a]
at
2019-08-01 20:14:35
on branch trunk
— Split threading.[hm] into multiple files
This allows the runtime to only link against the parts it needs, without
pulling in unnecessary parts like thread spawning, TLS and conditions. (user: js, size: 1500) [annotate] [blame] [check-ins using]
To Artifact [586159d8cd]:
- File src/condition.h — part of check-in [c26426e80f] at 2019-08-01 21:05:49 on branch trunk — Add missing extern "C" (user: js, size: 1567) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
36 37 38 39 40 41 42 43 44 45 46 47 48 49 | # include <windows.h> typedef struct { HANDLE event; int count; } of_condition_t; #endif extern bool of_condition_new(of_condition_t *condition); extern bool of_condition_signal(of_condition_t *condition); extern bool of_condition_broadcast(of_condition_t *condition); extern bool of_condition_wait(of_condition_t *condition, of_mutex_t *mutex); extern bool of_condition_timed_wait(of_condition_t *condition, of_mutex_t *mutex, of_time_interval_t timeout); extern bool of_condition_free(of_condition_t *condition); | > > > > > > | 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | # include <windows.h> typedef struct { HANDLE event; int count; } of_condition_t; #endif #ifdef __cplusplus extern "C" { #endif extern bool of_condition_new(of_condition_t *condition); extern bool of_condition_signal(of_condition_t *condition); extern bool of_condition_broadcast(of_condition_t *condition); extern bool of_condition_wait(of_condition_t *condition, of_mutex_t *mutex); extern bool of_condition_timed_wait(of_condition_t *condition, of_mutex_t *mutex, of_time_interval_t timeout); extern bool of_condition_free(of_condition_t *condition); #ifdef __cplusplus } #endif |