Skip to content
Tcl Source Code Artifact [e57ea2a03e]
Login

Artifact [e57ea2a03e]

Artifact e57ea2a03eb07362976e1ca595ae3246be7f8694:

Ticket change [e57ea2a03e] - Ticket [f4f44174e4c88a91|f4f44174e4] <i>protect notifier against signals</i> status still Open with 3 other changes by chw on 2016-12-07 01:42:06.
D 2016-12-07T01:42:06.186
J icomment Oooooops.\sThat's\sdefinitely\sa\sdeadlock\ssince\sthe\ssignal\shandling\stries\sto\slock\sthe\ssame\smutex\spath\sas\sTcl_AsyncInvoke()\ssince\sthe\ssignal\sis\sreceived\sby\sthe\ssame\sthread.\sLooks\slike\sa\sfundamental\sdesign\sproblem.\sIn\sthe\solden\sunthreaden\sthreatless\sdays\swhere\sTcl_MutexLock(),\sTcl_MutexUnlock(),\sand\sthe\salert\sfunction\swere\sdummies,\sthis\swas\sno\sproblem\sat\sall\ssince\sthe\sflag\sfor\sasync\sinvoke\swas\ssimply\sset\sby\sthe\ssignal\shandler.\sNowadays\sthe\ssignal\shandler\slikes\sto\sacquire\sand\srelease\sa\smutex.\sAnd\sPOSIX\sdoes\snot\slist\spthread_mutex_(unlock|lock)()\sas\sasync\ssignal\ssafe\sfunctions.\sBUMMER!\sSignals\sand\sthreads\sare\stwo-component\sexplosive\sby\scommittee\sdesign,\snow\sI\swonder\swhat\sAngus\sMcGyver\swould\sdo.
J login chw
J mimetype text/plain
K f4f44174e4c88a9132b19bcc4b68346a1d229fe1
U chw
Z e250a982ec70c274d97ba8bd70c8a871