mirror of
https://github.com/lammertb/libhttp.git
synced 2025-08-10 14:23:00 +03:00
Made httplib_pthread_cond_signal global
This commit is contained in:
@@ -131,10 +131,14 @@ int event_wait(void *eventhdl) {
|
||||
|
||||
int event_signal(void *eventhdl) {
|
||||
|
||||
struct posix_event *ev = (struct posix_event *)eventhdl;
|
||||
httplib_pthread_mutex_lock( & ev->mutex );
|
||||
pthread_cond_signal(&(ev->cond));
|
||||
struct posix_event *ev;
|
||||
|
||||
ev = eventhdl;
|
||||
|
||||
httplib_pthread_mutex_lock( & ev->mutex );
|
||||
httplib_pthread_cond_signal( & ev->cond );
|
||||
httplib_pthread_mutex_unlock( & ev->mutex );
|
||||
|
||||
return 1;
|
||||
|
||||
} /* event_signal */
|
||||
|
Reference in New Issue
Block a user