mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-06 23:00:31 +01:00
egl: MacOS platform guard around pthread_condattr_setclock()
This patch disabled the call to pthread_condattr_setclock on MacOS/Apple platforms. This funciton is missing from the the Xcode pthread implemetation. Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28130>
This commit is contained in:
parent
8387deff87
commit
275fdf709d
1 changed files with 2 additions and 0 deletions
|
|
@ -3335,6 +3335,7 @@ dri2_create_sync(_EGLDisplay *disp, EGLenum type, const EGLAttrib *attrib_list)
|
|||
goto fail;
|
||||
}
|
||||
|
||||
#if !defined(__APPLE__) && !defined(__MACOSX)
|
||||
/* change clock attribute to CLOCK_MONOTONIC */
|
||||
ret = pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);
|
||||
|
||||
|
|
@ -3342,6 +3343,7 @@ dri2_create_sync(_EGLDisplay *disp, EGLenum type, const EGLAttrib *attrib_list)
|
|||
_eglError(EGL_BAD_ACCESS, "eglCreateSyncKHR");
|
||||
goto fail;
|
||||
}
|
||||
#endif
|
||||
|
||||
ret = pthread_cond_init(&dri2_sync->cond, &attr);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue