Differences From Artifact [c7f4f2bb50]:
- File
src/condition_winapi.m
— 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: 1965) [annotate] [blame] [check-ins using]
To Artifact [984c51a6f0]:
- File src/condition_winapi.m — part of check-in [3c865f9e41] at 2019-08-02 12:24:56 on branch trunk — Minor improvements for threads on Windows (user: js, size: 1986) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
33 34 35 36 37 38 39 | { return SetEvent(condition->event); } bool of_condition_broadcast(of_condition_t *condition) { | > > | | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | { return SetEvent(condition->event); } bool of_condition_broadcast(of_condition_t *condition) { int count = condition->count; for (int i = 0; i < count; i++) if (!SetEvent(condition->event)) return false; return true; } bool |
︙ | ︙ |