Skip to content
Tcl Source Code Artifact [5f96228696]
Login

Artifact [5f96228696]

Artifact 5f962286969736df71039fc4daa201acd58acb2c:

Wiki page [Threads] by dgp on 2014-08-29 18:47:27.
D 2014-08-29T18:47:27.301
L Threads
P b1d1a757a90c3d75180047ede7dba171ea09415f
U dgp
W 2317
<h1>Source Files</h1>
  *  [/finfo?name=generic/tclThread.c|tclThread.c]
  *  [/finfo?name=generic/tclThreadJoin.c|tclThreadJoin.c]
  *  [/finfo?name=generic/tclThreadStorage.c|tclThreadStorage.c]
  *  [/finfo?name=unix/tclUnixThrd.c|tclUnixThrd.c]
  *  [/finfo?name=win/tclWinThrd.c|tclWinThrd.c]

<h1>Public Interface</h1>
  *  Tcl_ConditionNotify
  *  Tcl_ConditionWait
  *  Tcl_ConditionFinalize
  *  Tcl_GetThreadData
  *  Tcl_MutexLock
  *  Tcl_MutexUnlock
  *  Tcl_MutexFinalize
  *  Tcl_JoinThread
  *  <i>Tcl_CreateThread</i>
  *  <i>Tcl_ExitThread</i>
  *  <i>Tcl_GetCurrentThread</i>
  *  <i>Tcl_GetAllocMutex</i>

<h1>Private Interface</h1>
  *  TclThreadDataKeyGet
  *  TclRememberMutex
  *  TclRememberCondition
  *  TclFinalizeThreadData
  *  TclFinalizeSynchronization
  *  TclJoinThread
  *  TclRememberJoinableThread
  *  TclSignalExitThread
  *  TclThreadStorageKeyGet
  *  TclThreadStorageKeySet
  *  TclFinalizeThreadDataThread
  *  TclInitThreadStorage
  *  TclFinalizeThreadStorage
  *  TclpThreadCreate
  *  TclpThreadExit
  *  TclpInitLock
  *  TclFinalizeLock
  *  TclpInitUnlock
  *  TclpMasterLock
  *  TclpMasterUnlock
  *  TclpFinalizeMutex
  *  TclpFinalizeCondition
  *  TclpReaddir
  *  TclpInetNtoa
  *  TclpNewAllocMutex
  *  TclpFreeAllocMutex
  *  TclpFreeAllocCache
  *  TclpGetAllocCache
  *  TclpSetAllocCache
  *  TclpThreadCreateKey
  *  TclpThreadDeleteKey
  *  TclpThreadSetMasterTSD
  *  TclpThreadGetMasterTSD
 
<h1>Directly Depends On Public Interface</h1>
  *  [Allocation]
  *  <i>string.h</i>

<h1>Directly Depends On Private Interface of</h1>
  *  [Allocation]

<h1>Discussion</h1>

The boundaries of this module are a bit murky.  The routine <b>Tcl_GetCurrentThread</b>
is defined here, but documented as part of the [Notifier].  The routine <b>Tcl_ExitThread</b> is defined here, but documented alongside <b>Tcl_Exit</b> as part of [Event Loops].  The routine
<b>Tcl_GetAllocMutex</b> ought not be public at all (see [547989]).  The routine
<b>Tcl_CreateThread</b> pretty clearly ought to be here and is documented with the rest
of the [Threads] routines, but is actually found over in [/finfo?name=generic/tclEvent.c|tclEvent.c]
as part of [Event Loops].  Perhaps these can be tidied up.



Z c3d22c97a388e55c7102cb7cc0abfcc2