| author | |
| committer | |
| log | 92dac89d019fcd91aa043a116d6a6e166da8c4b2 |
| tree | d9aacd696802d5d35d44ea1ab8a91a247e383bd6 |
| parent | 7045f1e875eba3ec9cd5bd051aee059d34776bed |
1 files changed, 2 insertions(+), 0 deletions(-)
lib/std/parker.zig+2| ... | ... | @@ -199,6 +199,8 @@ const PosixParker = struct { |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | 201 | pub fn unpark(self: *PosixParker, ptr: *const u32) void { |
| 202 | assert(pthread_mutex_lock(&self.mutex) == 0); | |
| 203 | defer assert(pthread_mutex_unlock(&self.mutex) == 0); | |
| 202 | 204 | assert(pthread_cond_signal(&self.cond) == 0); |
| 203 | 205 | } |
| 204 | 206 |