aboutsummaryrefslogtreecommitdiff
path: root/ringbuf.c
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-09-13 20:53:56 +0800
committerMistivia <i@mistivia.com>2025-09-13 20:53:56 +0800
commita4daf467f871b0e77f07f1071b47b960da7bfba9 (patch)
tree43b8847b395a90f5aadb57593c0d84e2c13cca7c /ringbuf.c
parentf3eeea1d7092f3ca98836035bf75b941d14c2067 (diff)
add s3 client
Diffstat (limited to 'ringbuf.c')
-rw-r--r--ringbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ringbuf.c b/ringbuf.c
index 2c58752..9f5fb86 100644
--- a/ringbuf.c
+++ b/ringbuf.c
@@ -46,8 +46,8 @@ size_t RingBuffer_space(RingBuffer *self) {
void RingBuffer_end(RingBuffer *self) {
pthread_mutex_lock(&self->mutex);
self->finished_flag = true;
- pthread_mutex_unlock(&self->mutex);
pthread_cond_signal(&self->not_empty_cond);
+ pthread_mutex_unlock(&self->mutex);
}
size_t RingBuffer_write(RingBuffer *self, const uint8_t *data, size_t len) {