mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-27 21:22:26 +00:00
XQuartz: Add locking to make mieq thread safe on OSX
(cherry picked from commit 7a8d2266861e74176b5310b83652a9c10a170494)
This commit is contained in:
parent
1beff89810
commit
5339c22a8c
3 changed files with 68 additions and 1 deletions
|
|
@ -115,7 +115,8 @@ void darwinEvents_lock(void) {
|
|||
}
|
||||
}
|
||||
|
||||
static inline void darwinEvents_unlock(void) {
|
||||
void darwinEvents_unlock(void);
|
||||
void darwinEvents_unlock(void) {
|
||||
int err;
|
||||
if((err = pthread_mutex_unlock(&mieq_lock))) {
|
||||
ErrorF("%s:%s:%d: Failed to unlock mieq_lock: %d\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue