Skip to content
Tcl Source Code Artifact [d58affa65f]
Login

Artifact [d58affa65f]

Artifact d58affa65ff32ab6d43d0abcaeb92dccad0105fa:

Ticket change [d58affa65f] - New ticket [1202052fffffffff|1202052fff] <i>Darwin: CFRunLoop based notifier</i>. by das on 2005-05-14 18:28:19.
D 2005-05-14T18:28:19
J assignee das
J cmimetype text/plain
J comment This\spatch\simplements\sa\snew\sCFRunLoop\sbased\snotifier\son\sDarwin\sto\s\nallow\seasy\sintegration\swith\sother\sevent\sloops\son\sMac\sOS\sX,\sin\sparticular\s\nthe\sTkAqua\sCarbon\sevent\sloop\scan\snow\sbe\sintegrated\svia\sa\sstandard\stcl\s\nevent\ssource\s(instead\sof\sTkAqua\supon\sloading\shaving\sto\sfinalize\sthe\s\nexsting\snotifier\sand\s\sreplace\sit\swith\sits\scustom\sversion,\swhich\shas\sbad\s\nconsequences\sfor\sany\sfileevent\shandlers\salready\sestablished).\n\nThe\snew\stclMacOSXNotify.c\sis\svery\ssimilar\sto\sthe\sthreaded\stclUnixNotfy.c,\s\nexcept\sthat\sthe\snotifier\sthread\suses\sa\sCFRunLoopSource\sto\swake\sup\stcl\s\nthreads\swaiting\sfor\sevents\sin\sCFRunLoopRun.\sTo\sallow\suse\sof\sthis\snotifier\s\nin\san\suntreaded\score,\swe\suse\spthread\sAPI\sdirectly\sand\sdon't\srely\son\stcl\s\nthread\sAPI.\sTo\sreduce\scomplexity\sonly\sthe\sminimal\samount\sof\spthread\sAPI\s\nnecessary\sis\sused;\sfor\slocking,\swe\s\suse\sthe\slow\soverhead\sOSSpinLockLock\s\nAPI\s(or\sthe\scommpage\s_spin_lock\sSPI).\sThe\sneed\sfor\scondition\svariables\sis\s\nremoved\sby\screating\sthe\strigger\spipe\sfrom\sthe\smain\sthread\sand\susing\s\npthread_join\sto\swait\sfor\snotifier\sthread\stermination.\sUse\sof\sthe\stcl\sthread\s\nspecific\sdata\sAPI\scan\sremain\sbecause\sit\sis\sonly\sused\sin\sthreads\swith\sinterps\s\n(i.e.\snot\sthe\snotifier\sthread)\sand\sin\sthe\sunthreaded\scase,\sthere\sis\sonly\sone\s\nsuch\sthread.\n
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter das
J subsystem 01.\sNotifier
J title Darwin:\sCFRunLoop\sbased\snotifier
J type Patch
K 1202052fffffffffffffffffffffffffffffffff
U das
Z 98765f27cca505d80b3850bfe610ba2f