RE: [ROOT] PThreads && WIN32

From: Valeri Fine (fine@bnl.gov)
Date: Thu Aug 26 2004 - 18:21:51 MEST


Hello Brandon,

 

The answer really depends of what you want you extra thread to do.

 

As soon as it does not call any ROOT API but TROOT::ProcessLine() you are free to
establish and manage that thread with any mechanism you know.

(for example Qt implementation uses QThread to manage its Qt GUI event loop,
http://doc.trolltech.com/4.0/qthread.html )

 

If you want your thread to communicate with ROOT  you can do that via
gROOT->ProcessLine

My believe (Valeriy O should correct me. There were many a lot changes within ROOT
Win32 layer. I may have missed something)  the  ProcessLine method communicates

CINT via Win32 SendMessage mechanism. This way all your C++ statements will be
parsed by CINT and executed by ANOTHER thread within ROOT.

 

See: 

http://root.cern.ch/root/htmldoc/TROOT.html#TROOT:ProcessLine 

 

In theory (again in theory) this should be sufficient to build the thread-safe
user application.

In real life I am not aware about any application that employs such approach.

 

  Hope this helps,

----

Best regards

                   Valeri

 

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch] On
Behalf Of Brandon Kohn
Sent: Thursday, August 26, 2004 7:07 AM
To: Roottalk List
Subject: [ROOT] PThreads && WIN32

 

Hello all,

 

Just wanted to ask a quick question about root and pthreads-win32...

 

Does the current root HEAD have support for building the win32gdk version of root
with the pthreads-win32 varient library from redhat? If not, does anyone have any
pointers on how to get threading going under the root environment on win32?

 

Thanks

Brandon

____________________________________________________________
Brandon Kohn                        Tel.: +377 97 97 41 51
Software Developer
The Maia Institute                   Fax.: +377 97 97 41 59
Le Patio Palace
____________________________________________

 

Important Notice

 

This email and any attachments to it are confidential and intended solely for the
individual(s) to whom they are addressed.  Any modification or dissemination of
the contents of this e-mail is strictly prohibited unless expressly authorised by
the sender.  If you receive this e-mail by mistake, please advise the sender
immediately by using the reply facility in your e-mail software.  Please also
delete the message from your computer, and destroy any paper copies. Thank you for
your co-operation.



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET