[root] / trunk / core / thread / src / TPosixThread.cxx Repository:
ViewVC logotype

Log of /trunk/core/thread/src/TPosixThread.cxx

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 42887 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 6 15:23:18 2012 UTC (2 years, 11 months ago) by axel
File length: 6759 byte(s)
Diff to previous 42885
More generic version of r42885: guarantee thread stack size to be >= 2MB on all platforms.

Revision 42885 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 6 13:42:56 2012 UTC (2 years, 11 months ago) by axel
File length: 6778 byte(s)
Diff to previous 39269
Make pthread stack size at least the same on MacOS (default: 512k) as on Linux (default: 2M). Symmetry and price of RAM being the main reasons.

Revision 39269 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 19 14:01:30 2011 UTC (3 years, 8 months ago) by rdm
File length: 6386 byte(s)
Diff to previous 35586
document return codes.

Revision 35586 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 22 14:06:57 2010 UTC (4 years, 4 months ago) by rdm
File length: 5933 byte(s)
Diff to previous 22961
fix coverity 10687.

Revision 22961 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 3 13:32:57 2008 UTC (6 years, 9 months ago) by rdm
File length: 5957 byte(s)
Diff to previous 20882
move the directories:
  base clib cont meta metautils newdelete pcre rint thread unix utils
  winnt zip
under the new core meta directory.

Revision 20882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:31:26 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/thread/src/TPosixThread.cxx
File length: 5957 byte(s)
Diff to previous 19826
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/thread/src/TPosixThread.cxx
File length: 5957 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/thread/src/TPosixThread.cxx
File length: 6011 byte(s)
Diff to previous 15034
remove :$ from tag line

Revision 15034 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 14 07:53:19 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/thread/src/TPosixThread.cxx
File length: 6021 byte(s)
Diff to previous 10871
Fix coding conventions violations

Revision 10871 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 5 01:25:19 2005 UTC (10 years ago) by rdm
Original Path: trunk/thread/src/TPosixThread.cxx
File length: 5999 byte(s)
Diff to previous 10774
From Gerri:
the Info message in TPosixThread::CleanUp should be
printed only if some debug is requested ...

Revision 10774 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 14 15:06:18 2004 UTC (10 years, 1 month ago) by rdm
Original Path: trunk/thread/src/TPosixThread.cxx
File length: 5976 byte(s)
Diff to previous 10748
several important changes and fixes:
- remove dependence on direct G__xxx CINT code, since CINT is not
  reentrant there is no change we can currently run interprered function
  as thread functions. This avoids also usage of the CINT lock in
  the thread code which could lead to deadlocks when threads were
  created in a constructor of an object created via the plugin manager
  (which uses CINT to execute the ctor).

- added thread safe versions for the DoError() and ErrorHandler() functions
  which allows TThread::Info() and family to be called from threads.
  Idem for the Printf() function.

- by Maarten, added a join helper thread that will avoid the main thread
  from blocking while doing a join and thereby not being able to process
  events or handle messages sent from the threads via the XARequest
  method.

- fix several memory leaks (valgrind).

Revision 10748 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 10 12:13:33 2004 UTC (10 years, 1 month ago) by rdm
Original Path: trunk/thread/src/TPosixThread.cxx
File length: 5254 byte(s)
Diff to previous 10455
From Maarten and me:
Changelog:

 - Fixed a problem with TSemaphore where the owner of the lock in
   the associated TMutex was not properly updated by the low level
   pthread_cond_wait relock. (always remember our TMutex in TCondition)

 - Unify thread ID's as Long_t

 - Simplify and regularize TThread::Join(). Join with a thread based on
   tid or TThread *, hide implementation more cleanly, remove unnecessary
   member functions and variables (fJoinId et al)

 - Make TThread::Ps() static (easier from cmd line)

 - Use -1 iso 0 for unknown thread id as 0 is a valid value

 - add more error checking in lots of places

 - move gContainerMutex and gCINTMutex initialisation with the rest of
   the one time init bunch.

 - Simpify Exists()

 - Lock *all* access to the global thread list

Revision 10455 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 2 17:25:53 2004 UTC (10 years, 2 months ago) by rdm
Original Path: trunk/thread/src/TPosixThread.cxx
File length: 5285 byte(s)
Diff to previous 10450
fix warning on MacOS X.

Revision 10450 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 2 13:09:02 2004 UTC (10 years, 2 months ago) by rdm
Original Path: trunk/thread/src/TPosixThread.cxx
File length: 5277 byte(s)
Diff to previous 9439
From Bertrand:
fix setting join id.

Revision 9439 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 8 11:52:32 2004 UTC (10 years, 6 months ago) by rdm
Original Path: trunk/thread/src/TPosixThread.cxx
File length: 5255 byte(s)
Diff to previous 7048
several cleanups and a fix that allows TThreads to run also when not
in the TApplication eventloop.

Revision 7048 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 6 21:31:24 2003 UTC (11 years, 5 months ago) by rdm
Original Path: trunk/thread/src/TPosixThread.cxx
File length: 5283 byte(s)
Diff to previous 2385
remove unused argument and other warnings exposed by the -W option.

Revision 2385 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 6 13:41:43 2001 UTC (13 years, 7 months ago) by brun
Original Path: trunk/thread/src/TPosixThread.cxx
File length: 5268 byte(s)
Diff to previous 1888
The following mods by Mathieu de Naurois. The following was an email from Matthieu

"You set the Thread Id at two different places.
1) in Int_t TPosixThread::Run(TThread *th)

  th->fId = id; SetUniqueID(th->fId);

2)in void *TThread::Fun(void *ptr)

  th = (TThread *)ptr;
  th->fId = SelfId(); th->SetUniqueID(th->fId);

The second solution is the only good one, because the Thread uses its it
in the TThread::Fun
function. So if TPosixThread::Run was not fast enough, you get a clash.

BUT, in TThread::Fun(void *ptr) you use the Id before assigning it, in
the following call
  CleanUpPush((void *)&AfterCancel,th);  // Enable standard cancelling
function

So, I suggest to move the Id definition before that call."

Revision 1888 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 3 13:36:46 2001 UTC (13 years, 9 months ago) by rdm
Original Path: trunk/thread/src/TPosixThread.cxx
File length: 5266 byte(s)
Diff to previous 1887
forgot two explictit casts from pthread_t to Long_t.

Revision 1887 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 3 10:40:24 2001 UTC (13 years, 9 months ago) by rdm
Original Path: trunk/thread/src/TPosixThread.cxx
File length: 5252 byte(s)
Diff to previous 3
the thread id must be a Long_t (maps to pthread_t which is a long). Number of
signature changes from Int_t to Long_t.

Revision 3 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: trunk/thread/src/TPosixThread.cxx
File length: 3958 byte(s)
Copied from: branches/rdm/thread/src/TPosixThread.cxx revision 2
Diff to previous 2
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

Revision 2 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: branches/rdm/thread/src/TPosixThread.cxx
File length: 3958 byte(s)
Initial import of ROOT into CVS

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9