File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -457,6 +457,8 @@ static inline void mi_lock_done(mi_lock_t* lock) {
457457
458458#elif defined(MI_USE_PTHREADS)
459459
460+ void _mi_error_message (int err, const char * fmt, ...);
461+
460462#define mi_lock_t pthread_mutex_t
461463
462464static inline bool mi_lock_try_acquire (mi_lock_t * lock) {
@@ -465,7 +467,7 @@ static inline bool mi_lock_try_acquire(mi_lock_t* lock) {
465467static inline void mi_lock_acquire (mi_lock_t * lock) {
466468 const int err = pthread_mutex_lock (lock);
467469 if (err != 0 ) {
468- mi_error_message (EFAULT , " internal error: lock cannot be acquired\n " );
470+ _mi_error_message (err , " internal error: lock cannot be acquired\n " );
469471 }
470472}
471473static inline void mi_lock_release (mi_lock_t * lock) {
You can’t perform that action at this time.
0 commit comments