mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 09:35:23 -04:00
revert back to mutex/condvar waitables
fixes sign in
This commit is contained in:
parent
ee012dcd36
commit
f37b3aea77
@ -281,11 +281,11 @@ void Mutex_Unlock(void* handle) {
|
||||
mutexUnlock((Mutex*)handle);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
struct WaitData {
|
||||
CondVar cond;
|
||||
Mutex mutex;
|
||||
int signalled; /& For when Waitable_Signal is called before Waitable_Wait
|
||||
int signalled; // For when Waitable_Signal is called before Waitable_Wait
|
||||
};
|
||||
|
||||
void* Waitable_Create(void) {
|
||||
@ -336,7 +336,7 @@ void Waitable_WaitFor(void* handle, cc_uint32 milliseconds) {
|
||||
ptr->signalled = false;
|
||||
Mutex_Unlock(&ptr->mutex);
|
||||
}
|
||||
*/
|
||||
/*
|
||||
|
||||
void* Waitable_Create(void) {
|
||||
LEvent* ptr = (LEvent*)Mem_Alloc(1, sizeof(LEvent), "waitable");
|
||||
@ -362,7 +362,7 @@ void Waitable_WaitFor(void* handle, cc_uint32 milliseconds) {
|
||||
cc_uint64 timeout_ns = milliseconds * (1000 * 1000); // to nanoseconds
|
||||
leventWait((LEvent*)handle, timeout_ns);
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
/*########################################################################################################################*
|
||||
*---------------------------------------------------------Socket----------------------------------------------------------*
|
||||
|
Loading…
x
Reference in New Issue
Block a user