Skip to content
Tcl Source Code Artifact [a3f5332e73]
Login

Artifact [a3f5332e73]

Artifact a3f5332e736ae0f06ce49e2ea88f0c875111fff9:

Ticket change [a3f5332e73] - Ticket [659131ffffffffff|659131ffff] <i>development targets: Complete pthreads?</i> status still Open with 4 other changes by vasiljevic on 2003-11-27 01:23:37.
D 2003-11-27T01:23:37
J icomment Logged\sIn:\sYES\s\nuser_id=95086\n\nAs\spromised,\shere\sis\sthe\ssmall\slist\sof\sthings\s\nI'd\slike\sto\sTIP.\s\n\s\nAdd\snew\scalls:\s\n\sTcl_SetThreadSpecificData(keyPtr,\sdata);\s\n\sTcl_GetThreadSpecificData(keyPtr);\s\n\sTcl_CreateThreadSpecificData(keyPtr,\scleanupCallback);\s\n\s\nThe\sidea\sis\sto\sintroduce\sbetter\shandling\sof\sthread\s\nspecific\sdata\sfor\scleanup\spurposes.\sThe\scurrent\sTcl\s\nimplementation\swith\ssimple\sexit\scallbacks\sshows\ssome\s\nlimitations.\s\n\s\nAdd\snew\scalls:\s\n\sTcl_MutexTryLock(mutexPtr);\s\n\sTcl_SetMutexName(mutexPtr,\smutexName);\s\n\sTcl_GetMutexName(mutexPtr);\s\n\sTcl_GetMutexLockAttempts(mutexPtr);\s\n\sTcl_GetMutexLockWaits(mutexPtr);\s\n\s\nThe\sidea\shere\sis\sto\sextend\sthe\smutex\sstructure\s\nto\sinclude\ssome\shousekeeping\scounters.\sThis\s\nwould\sallow\sfor\smonitoring\slocking\shotspots.\s\n\s\nAdd\snew\scalls:\s\n\sTcl_ConditionSignal(condPtr)\s\n\sTcl_ConditionWaitEx(condPtr,\smutexPtr,\stimePtr)\s\n\s\nThe\sfirst\sone\sis\ssimply\smissing.\sThe\ssecond\sone\s\nwould\sreturn\sthe\scause\sof\sthe\sexit\s(timer\sexpired,\s\nor\svariable\ssignalled)\swhich\sis\snot\sreported\sby\s\nthe\scurrent\sTcl_ConditionWait()\simplementation.\s\n\s\nAdd\snew\scalls:\s\n\sTcl_RWLockWriteLock(rwlockPtr);\s\n\sTcl_RWLockReadLock(rwlockPtr);\s\n\sTcl_RWLockUnlock(rwlockPtr);\s\n\s\nNot\sgenerally\sneeded\ssince\scould\sbe\simplemented\s\nby\sexisting\sprimitives,\sbut\ssimplifies\swork\sfor\s\nsome\speople.\sThis\sis\sa\sgoodie\sonly.\s\nFor\sthe\sTcl\sextension,\sthis\scan\sbe\sdone\sin\sthe\s\nextension\sitself,\sso\sno\score\schanges\swould\sbe\s\nneeded.\s\n\s\n\s\nNow,\sthe\sreference\simplementation\sis\spending.\s\nI\shope\sto\sget\ssome\stime\sin\snext\scouple\sof\sweeks\s\nand\sget\sit\s(finally)\sdone.\s\nIs\sthere\sanything\syou\smight\sadd\sto\sthis?\s\n\s\n
J login vasiljevic
J mimetype text/plain
J username vasiljevic
K 659131ffffffffffffffffffffffffffffffffff
U vasiljevic
Z 10df1094fe1a44df3cdc60d90d500953