diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-04-12 01:07:39 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-04-12 01:07:39 -0400 |
commit | d24297abf4390e88a972e67ba3fb35fe688d831f (patch) | |
tree | 6a719180f7b0d0a1ee0cb78f4bb0ee0c4a4e9caa /src/multipart-replace.h | |
parent | 4db920ce8cce46cee404c7d7870fac8eed2e7689 (diff) |
multipart-replace: use condition variables instead of polling
Diffstat (limited to 'src/multipart-replace.h')
-rw-r--r-- | src/multipart-replace.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/multipart-replace.h b/src/multipart-replace.h index e4cced0..d302c5f 100644 --- a/src/multipart-replace.h +++ b/src/multipart-replace.h @@ -31,7 +31,8 @@ struct multipart_replace_stream { struct frame a, b; struct frame *front, *back; pthread_rwlock_t frontlock; - long framecount; + pthread_cond_t newframe; + pthread_mutex_t newframe_lock; }; int multipart_replace_reader(struct multipart_replace_stream *s, int fd, const char *boundary); |