<i>joinable threads die on Solaris 64-bit</i> status still Open with 4 other changes
by
.
D 2007-05-29T23:25:31
J icomment Logged\sIn:\sYES\s\nuser_id=95086\nOriginator:\sNO\n\nTry\srewriting\sthe\sTcl_JoinThread\sin\sTcl\sto\slook\slike\n\nint\nTcl_JoinThread(threadId,\sstate)\n\s\s\s\sTcl_ThreadId\sthreadId;\s/*\sId\sof\sthe\sthread\sto\swait\supon\s*/\n\s\s\s\sint*\s\s\s\s\sstate;\s\s\s/*\sReference\sto\sthe\sstorage\sthe\sresult\n\s\s\s\s*\sof\sthe\sthread\swe\swait\supon\swill\sbe\n\s\s\s\s*\swritten\sinto.\s*/\n{\n#ifdef\sTCL_THREADS\n\s\s\s\sint\sresult;\n\s\s\s\sunsigned\slong\slong\sdummy;\n\n\s\s\s\sresult\s=\spthread_join\s((pthread_t)\sthreadId,\s(VOID**)\s&dummy);\n\s\s\s\s*state\s=\s0;\n\s\s\s\sreturn\s(result\s==\s0)\s?\sTCL_OK\s:\sTCL_ERROR;\n#else\n\s\s\s\sreturn\sTCL_ERROR;\n#endif\n\nso,\seffectively,\sditch\sthe\serror\sstate\sof\sthe\sthread,\sjust\spass\nthe\spthread_join\sa\sdummy\sstate\sand\ssee\sif\sthis\shelps.\s\n\n\n
J login vasiljevic
J mimetype text/plain
J username vasiljevic
K 1712723fffffffffffffffffffffffffffffffff
U vasiljevic
Z 7c782cfb9d21b69bd45941f1c5976966