<i>development targets: Complete pthreads?</i> status still Open with 4 other changes
by
.
D 2003-11-06T17:11:16
J icomment Logged\sIn:\sYES\s\nuser_id=95086\n\nThank\syou\sfor\syour\sefforts.\s\s\nI\swill\slook\sat\sthe\scode\syou've\sposted.\s\nUpfront\sjust\sa\scouple\sof\sanwers:\s\n\s\nTclRememberMutex\sis\sdefined\sin\sgeneric/tclThread.c\s\nand\sis\sjust\sa\swrapper\sfor\sRememberSyncObject.\s\n\s\nSelf-initialization\sof\sthread\ssync\sprimitives\smeans\s\nthere\sis\sno\sexplicit\screator\sfunction.\sThe\sprimitive\s\nis\sauto-initialized\son\sthe\sfirst\suse.\sHowever,\syou\s\nneed\sto\sdo\sTcl_MutexFinalize\sand/or\sTcl_ConditionFinalize\s\nwhen\snot\sneeded\sany\smore.\sTake\scare:\sthis\scan\sbe\stricky.\s\n\s\nTcl_Mutex\smutex;\s\nTcl_MutexLock(&mutex);\s/*\swill\screate\sthe\smutex\s*/\s\n/*....*/\s\nTcl_MutexUnlock(&mutex);\s\nTcl_MutexFinalize(&mutex);\s/*\swill\sdestroy\sit\s*/\s\n\s\nErrors\sfrom\ssystem\scalls\sshould\sbe\sset\susing\s\s\nTcl_SetErrno(errno).\s\s\n\s\n\s\n\s\n\s\n\s\n
J login vasiljevic
J mimetype text/plain
J username vasiljevic
K 659131ffffffffffffffffffffffffffffffffff
U vasiljevic
Z 9981eeb2a02bc1c1d2f70f7348698a6b