I'm using boost::threads in my project and want to use tcl/tk as interpreter
Via boost::threads i've created two main threads :
- one running the tcl interpreter (and the gui incl. DoOneEvent loop)
(The Tcl Interpreter and the Tk Eventloop has been encapsulated in an
- one running my projects computations.
Basically i want to access tk widgets from my computations to show results
and update gauges etc.. Since both, my computation thread and the tcl
interpreter/gui thread can access the same ressource (widget, vars) it could
come to problems.
Now i have a question:
- does it make sense to use a boost::mutex on every Tcl_Eval-Invocation and
in the DoOneEvent loop since Tcl/Tk uses pthreads itself and runs an own
thread management ?
- or more generally WHERE do i use my mutex to make the app stable ?
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++
Get latest updates about Open Source Projects, Conferences and News.