[threading linux] Implement Callback Queuing

Add thread local bool for alertable state.
Use real-time event interrupt to run callback.
Fix sleep duration from miliseconds (microseconds / 1000) to seconds in sleep
command.
Add note for future implementation.

Ignore real-time event 37 in .gdbinit which is used to signal callback.

Test AlertableSleep
Test Thread QueueUserCallback.
TODO: Test alerted wait result when using IO functions.
This commit is contained in:
Sandy Carter
2018-03-11 14:48:55 -04:00
committed by Rick Gibbed
parent 4397f25325
commit 634f87f63b
3 changed files with 128 additions and 14 deletions
+2
View File
@@ -6,3 +6,5 @@ handle SIG35 nostop noprint
handle SIG32 nostop noprint
# Ignore PosixThread suspend event
handle SIG36 nostop noprint
# Ignore PosixThread user callback event
handle SIG37 nostop noprint