<i>Tcl_AsyncMark does not work with --enable-threads</i> status still Open with 4 other changes
by
.
D 2009-09-29T19:19:41
J icomment It\sseems\sthis\sfunction\sis\sactually\snamed\spthread_mutex_trylock().\n\nThe\sidea\sis\sinteresting,\sbut\sI\sdon't\squite\sget\show\sto\simplement\sit:\nIn\sthe\sdefautl\smode\sof\soperation\spthread_mutex_trylock()\sis\sdefined\sto\sreturn\simmediately\swith\sEBUSY\sif\sthe\smutex\slock\sis\sheld,\sand\sTcl\score\sdoesn't\sexpect\sthis\sbehaviour\sfrom\sthe\smutex\sAPI\sit\suses\s(and\sexposes).\nIf\swe\sinstead\smake\sall\smutexes\s"recursive"\s(in\sterms\sof\spthreads),\sthis\swill\sfix\sdeadlocks\soccuring\sin\sthe\ssame\sthread\sbecause\sof\ssignal\shandling\sbut\swill\sbreak\sexpectations\sin\sall\sother\scases\swhen\sa\smutex\slocking\sfunction\sis\ssupposed\sto\swait\son\sa\smutex\salready\slocked\sby\ssome\sother\sthread.\n\nIt\sneed\sfurther\sthinking\s(and\staking\sinto\saccount\sthreading\ssubsystem\son\sWindows)\sas\sTcl\smutex\sAPI\shides\splatform\sdetails\sfrom\sthe\sprogrammer.\n
J login flatworm
J mimetype text/plain
J username flatworm
K 2869384fffffffffffffffffffffffffffffffff
U flatworm
Z 1054bfea065db83fc0d7b91e377d1680