ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcl-threads
tcl-threads
[Tcl-Threads] boost::threads and tcl/tk
by lukasdi other posts by this author
Sep 26 2005 3:09AM messages near this date
RE: [Tcl-Threads] does tpool::post really work in blocking mode? | [Tcl-Threads] Tcl/Tk 2005 Conference - Schedules available now, Registration is open
Hi,

I'm using boost::threads in my project and want to use tcl/tk as interpreter
and gui.

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
  own object.)

- 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 ?

Yours Sincerly
-Lukas

-- 
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse f�r Mail, Message, More +++


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Tcl-Threads mailing list
Tcl-Threads@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-threads

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved