Overview
| Artifact ID: | da9f3f1ec10d68bfa3d0c091a309c2ca89c0d05e40653b657d563f31d39d292f |
|---|---|
| Ticket: | 6ff44a29cea4b3fb72634f551cecb5917f837cf2
Support change notifications for thread shared variables |
| User & Date: | elfring on 2019-05-05 05:45:44 |
Changes
- icomment:
The standard functionality from the TCL command “trace” can generally be nice. But I suggest to take consequences from multi-threaded data processsing better into account. It can happen that a thread would like to wait on a status change in the running software. The TCL command “thread::cond wait” (and the function “Tcl_ConditionWait”) is an appropriate programming interface for this purpose. https://www.tcl.tk/man/tcl/ThreadCmd/thread.htm#M42 https://tcl.tk/man/tcl8.7/TclLib/Thread.htm The thread which will change shared resources would occasionally like to notify companions by using the corresponding condition variable. https://en.wikipedia.org/wiki/Monitor_(synchronization)#Condition_variables
- login: "elfring"
- mimetype: "text/plain"