[threading linux] Implement suspendable pthreads

Use real-time event interrupt to communicate suspend in timely manner.
Use conditional_variable to implement suspend wait and resume trigger.

Ignore real-time event 36 in .gdbinit which is used to signal suspend.

Test suspending threads.
This commit is contained in:
Sandy Carter
2019-01-11 14:47:59 -05:00
committed by Rick Gibbed
parent b2912e7891
commit 4397f25325
3 changed files with 69 additions and 13 deletions

View File

@@ -4,3 +4,5 @@ handle SIG34 nostop noprint
handle SIG35 nostop noprint
# Ignore PosixThread exit event
handle SIG32 nostop noprint
# Ignore PosixThread suspend event
handle SIG36 nostop noprint