mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-04 11:42:28 +00:00
Allow user to override pthread mutex and cond
This commit is contained in:
parent
4705705548
commit
55b7aa1632
54 changed files with 216 additions and 102 deletions
|
@ -18,6 +18,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/assert.h"
|
||||
#include "libc/stdio/internal.h"
|
||||
#include "libc/thread/posixthread.internal.h"
|
||||
#include "libc/thread/thread.h"
|
||||
|
||||
/**
|
||||
|
@ -25,5 +26,5 @@
|
|||
*/
|
||||
void flockfile(FILE *f) {
|
||||
unassert(f != NULL);
|
||||
pthread_mutex_lock(&f->lock);
|
||||
_pthread_mutex_lock(&f->lock);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue