[Partial] Build wasi-libc for Windows (#2338)
Build wasi-libc library on Windows since libuv may be not supported. This PR is a first step to make it working, but there's still a number of changes to get it fully working.
This commit is contained in:
@ -238,6 +238,56 @@ os_cond_signal(korp_cond *cond);
|
||||
int
|
||||
os_cond_broadcast(korp_cond *cond);
|
||||
|
||||
/**
|
||||
* Initialize readwrite lock object
|
||||
*
|
||||
* @param cond [OUTPUT] pointer to a lock object variable
|
||||
*
|
||||
* @return 0 if success
|
||||
*/
|
||||
int
|
||||
os_rwlock_init(korp_rwlock *lock);
|
||||
|
||||
/**
|
||||
* Acquire the read lock
|
||||
*
|
||||
* @param lock lock variable
|
||||
*
|
||||
* @return 0 if success
|
||||
*/
|
||||
int
|
||||
os_rwlock_rdlock(korp_rwlock *lock);
|
||||
|
||||
/**
|
||||
* Acquire the write lock
|
||||
*
|
||||
* @param lock lock variable
|
||||
*
|
||||
* @return 0 if success
|
||||
*/
|
||||
int
|
||||
os_rwlock_wrlock(korp_rwlock *lock);
|
||||
|
||||
/**
|
||||
* Unlocks the lock object
|
||||
*
|
||||
* @param lock lock variable
|
||||
*
|
||||
* @return 0 if success
|
||||
*/
|
||||
int
|
||||
os_rwlock_unlock(korp_rwlock *lock);
|
||||
|
||||
/**
|
||||
* Destroy a lock object
|
||||
*
|
||||
* @param lock lock variable
|
||||
*
|
||||
* @return 0 if success
|
||||
*/
|
||||
int
|
||||
os_rwlock_destroy(korp_rwlock *lock);
|
||||
|
||||
/**
|
||||
* Creates a new POSIX-like semaphore or opens an existing
|
||||
* semaphore. The semaphore is identified by name. For details of
|
||||
|
||||
Reference in New Issue
Block a user