[root] / trunk / core / thread / inc / TMutex.h Repository:
ViewVC logotype

Log of /trunk/core/thread/inc/TMutex.h

Parent Directory Parent Directory


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

Revision 29797 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 17 14:35:51 2009 UTC (5 years, 5 months ago) by rdm
File length: 2030 byte(s)
Diff to previous 22961
From Fabrizio and me:
- add support for native recursive mutexes (pthread and Win32) and remove
  not satisfactory generic recursive implementation.
- remove support for older pthread versions (PthreadDraftVersion < 10),
  all modern systems support version 10 now.

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: 2184 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/inc/TMutex.h
File length: 2184 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/inc/TMutex.h
File length: 2184 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/inc/TMutex.h
File length: 2230 byte(s)
Diff to previous 16822
remove :$ from tag line

Revision 16822 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 20 08:08:06 2006 UTC (8 years, 2 months ago) by rdm
Original Path: trunk/thread/inc/TMutex.h
File length: 2240 byte(s)
Diff to previous 15134
Make copy ctor and assignment operator private.

Revision 15134 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 23 04:47:42 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/thread/inc/TMutex.h
File length: 2197 byte(s)
Diff to previous 12127
From Federico Carminati:

"I have implemented all copy and equal operators needed to silence all
warnings in AliRoot, as requested. I have implemented shallow copies as
would do the default operators synthetized by the compiler.
Most operators are protected. If users complain, you just have to move
them into the public area, but class derivation is of course supported.
It has been a terrible job, I have modified 278 files, but the changes
are backward compabile, and this goes a long way to permitting user to
use the effc++ flag with root headers."

Revision 12127 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 23 00:29:38 2005 UTC (9 years, 7 months ago) by rdm
Original Path: trunk/thread/inc/TMutex.h
File length: 2123 byte(s)
Diff to previous 12123
cosmetics: remove <TABS> and change "const Char_t" back to "const char".

Revision 12123 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 22 20:18:12 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/thread/inc/TMutex.h
File length: 2122 byte(s)
Diff to previous 10755
From Constantin Loizides

This patch implements:
- decentralized, automatic mutex initialization,
  see R__LOCKGUARD2 in TVirtualMutex
- PROOF parallel startup fixes
- more thread protection (in base, cont, meta, rest to be done)
- cleanups

From Eddy Offermann:
TString::Atoi and Atof are made const.

Revision 10755 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 10 22:27:21 2004 UTC (10 years, 1 month ago) by rdm
Original Path: trunk/thread/inc/TMutex.h
File length: 2067 byte(s)
Diff to previous 10748
soome more thread cleanups.

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/inc/TMutex.h
File length: 2070 byte(s)
Diff to previous 10658
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 10658 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 1 15:46:00 2004 UTC (10 years, 1 month ago) by rdm
Original Path: trunk/thread/inc/TMutex.h
File length: 2071 byte(s)
Diff to previous 5726
cosmetic.

Revision 5726 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 3 16:44:25 2002 UTC (12 years, 1 month ago) by brun
Original Path: trunk/thread/inc/TMutex.h
File length: 2073 byte(s)
Diff to previous 3984
From  Mathieu de Naurois <denauroi@in2p3.fr>
"From the manual of pthread_cond_timedwait, I have:

 pthread_cond_timedwait  atomically  unlocks mutex and waits on
cond, as pthread_cond_wait does, but it also bounds the duration
of the wait. If cond  has  not  been  signaled  within  the amount
of time specified by abstime, the mutex  mutex  is  re-acquired
and pthread_cond_timedwait returns  the error ETIMEDOUT.
The abstime parameter specifies an absolute time, with the same
origin  as  time(2)  and gettimeofday(2):  an abstime of 0
corresponds to 00:00:00 GMT, January 1, 1970.

In the code of ROOT, the line:

 while (fgXAct) {fgXActCondi->TimedWait(1);}

was a nonsense that it equivalent to :
while(fgXAct);

and it uses 100% of CPU.

I modified the TThread class in the version we use for HESS.
For us, in a heavily multithreaded DAQ, this modified version works fine
and is faster when opening canvases from threads."

Revision 3984 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 14 16:12:52 2002 UTC (12 years, 11 months ago) by rdm
Original Path: trunk/thread/inc/TMutex.h
File length: 2052 byte(s)
Diff to previous 3
introduce new abstract class TVirtualMutex in base and move TLockGuard from
thread to base. TMutex now derives from TVirtualMutex. Also add zero
overhead macros to be used to place mutexes (zero overhead in case ROOT
is not compiled with thread support). Added, example, global container
mutex which should be initialized when libThread is loaded to point to
a real mutex. To be done and tested by Mathieu de Naurois.

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/inc/TMutex.h
File length: 3388 byte(s)
Copied from: branches/rdm/thread/inc/TMutex.h 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/inc/TMutex.h
File length: 3388 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