Skip to content
Tcl Source Code Artifact [796918c47f]
Login

Artifact [796918c47f]

Artifact 796918c47f3e68289ffc76fc5f397575574bddb9:

Ticket change [796918c47f] - Ticket [987967ffffffffff|987967ffff] <i>CRITICAL_SECTION masterLock not initialized</i> status still Open with 4 other changes by sorensenjs on 2004-07-11 19:04:09.
D 2004-07-11T19:04:09
J icomment Logged\sIn:\sYES\s\nuser_id=1080292\n\nI\sconcur\swith\sthe\scomments\sand\sthink\sthat\sit\swould\sbe\sa\sgood\nthing\sto\shave\san\sinitialize\sfunction,\salthough\smost\sof\sTcl's\ncode\scurrently\schecks\sand\sperforms\sinitialization\sof\sstatic\ndata\sthrough\slocal\stest\sand\sset\sroutines.\n\nOn\sthe\sother\shand,\sthe\schange\sI'm\ssuggesting\swould\smake\sthe\nwindows\scode\smore\slike\sthe\sunix\scode\s(which\sdoesn't\shave\nthis\sproblem);\swould\ssolve\sthe\simmediate\sproblem\sof\susing\nTcl\sas\sa\slibrary\swithout\screating\san\sinterpreter\s(on\nwindows);\swould\snot\sresult\sin\ssignificant\soverhead;\sand\nfinally,\swould\sonly\schange\sthis\slocal\sfile\slocally\sat\ncompile\stime.\s\sI\scannot\sconceive\sof\san\sargument\sagainst\nmaking\sthis\schange.\n\nSpecifically,\sthe\schange\sis\sthis\n>\s#define\sMASTER_LOCK\sEnterCriticalSection(&masterLock)\n>\s#define\sMASTER_UNLOCK\sLeaveCriticalSection(&masterLock)\nwould\sbecome\n<\s#define\sMASTER_LOCK\sTclpMasterLock()\n<\s#define\sMASTER_UNLOCK\sTclpMasterUnlock()\n\nWhile\sI\sconcur\swith\sdgp\sthat\sthere\sare\smany\sTcl\sfunctions\nthat\scould\sbe\scalled,\sperhaps\smost\sobviously\nTcl_CreateInterp,\sthat\swould\sperform\sthis\sinitialization,\nthe\sdocumentation\sdoes\snot\ssuggest\sthat\sthis\sshould\sbe\nrequired.\s\sIn\sfact,\son\sunix,\sit\sdoes\snot\sseem\sto\sbe\srequired\nat\sall.\s\sPerhaps\sthis\sis\snot\strue\sif\syou\scall\ssome\sdeep\sTcl\nfunctions.\s\sThe\smost\slikely\slibrary\scalls\sto\sbe\sused\sin\sthis\nfashion\sare\sTcl_Obj\smanipulation,\sstring\shandling\sesp.\nutf-8,\sand\sregular\sexpressions.\n\n\s\n
J login sorensenjs
J mimetype text/plain
J username sorensenjs
K 987967ffffffffffffffffffffffffffffffffff
U sorensenjs
Z 2bd4fd288bcbfd6be53191e9c7e86538