Project

General

Profile

Actions

Task #4589

open

threading: debug validate mutexes with PTHREAD_MUTEX_ERRORCHECK

Added by Victor Julien over 2 years ago. Updated 12 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Effort:
Difficulty:
Label:

Description

The idea is that if we compile with --debug-validation, we:

- pass a pthread_mutexattr_t with PTHREAD_MUTEX_ERRORCHECK to all SCMutexInit calls
- add a check for each init/lock/unlock that aborts if the return code is not 0

Would have found #4478

Actions

Also available in: Atom PDF