Overview
| Artifact ID: | b237fa2eefcab1c339a381acccde8a22ca4b9f3b |
|---|---|
| Ticket: | 659131ffffffffffffffffffffffffffffffffff
development targets: Complete pthreads? |
| User & Date: | vasiljevic on 2003-11-06 17:11:16 |
Changes
- icomment:
Logged In: YES user_id=95086 Thank you for your efforts. I will look at the code you've posted. Upfront just a couple of anwers: TclRememberMutex is defined in generic/tclThread.c and is just a wrapper for RememberSyncObject. Self-initialization of thread sync primitives means there is no explicit creator function. The primitive is auto-initialized on the first use. However, you need to do Tcl_MutexFinalize and/or Tcl_ConditionFinalize when not needed any more. Take care: this can be tricky. Tcl_Mutex mutex; Tcl_MutexLock(&mutex); /* will create the mutex */ /*....*/ Tcl_MutexUnlock(&mutex); Tcl_MutexFinalize(&mutex); /* will destroy it */ Errors from system calls should be set using Tcl_SetErrno(errno).
- login: "vasiljevic"
- mimetype: "text/plain"
- username: "vasiljevic"