Directory Core/Thread/

Total Files:
13
Deleted Files:
1
Lines of Code:
3849

[root]/Core/Thread

Lines of Code

Core/Thread/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 46 (100.0%) 638 (100.0%) 13.8
dav 10 (21.7%) 529 (82.9%) 52.9
jas 18 (39.1%) 60 (9.4%) 3.3
luitjens 12 (26.1%) 46 (7.2%) 3.8
jthornoc 2 (4.3%) 3 (0.5%) 1.5
harman 4 (8.7%) 0 (0.0%) 0.0

Most Recent Commits

luitjens 2009-11-30 13:17 Rev.: 45126

Updates to the WAIT_FOR_DEBUGGER code

0 lines of code changed in 2 files:

  • Core/Thread: Thread_pthreads.cc (new)
jthornoc 2009-11-02 18:02 Rev.: 45022


OSX Snow Leopard fixs from Dav. (First OSX to truely support 64 bits.)

M include/sci_defs/osx_testdefs.h.in

OSX Hack isn't used any more, so I removed it. Added the snow leopard #define.

M CCA/Components/Schedulers/OnDemandDataWarehouse.h

No one uses the boundary layer parameter so I removed it.

M CCA/Components/Schedulers/TaskGraph.h

- Removed tabs messing up indentation.
- Made a few params 'const'.

M CCA/Components/Schedulers/TaskGraph.cc

- Mostly cosmetics:
- Added some white space.
- Added some {}.
- Made a few params 'const'.

M CCA/Components/Schedulers/OnDemandDataWarehouse.cc

- An undefined boundary layer was being passed in even though no one uses it, so
default it to 0,0,0.

M CCA/Components/Schedulers/SchedulerCommon.cc

- Use 'const'.

M CCA/Ports/DataWarehouse.h

- Indent.
- In allocateTemporary(), you can't give a reference parameter (boundaryLayer) a default value. Not
sure why this compiles on other machines.

M Core/Grid/Patch.h

- White space cosmetics.

M Core/Grid/Variables/ParticleVariableBase.h
M Core/Grid/Variables/ParticleSubset.h

- Can't have a function differentiated only by return type (and particularly just by 'const' on the return type).
Not sure why other compiles allow this, and/or which function they actually 'link in', but the OSX 10 compiler
doesn't like it.

M Core/Grid/Variables/ReductionVariable_special.cc

- Don't compile some of these things under snow leopard.

M Core/Grid/Variables/ParticleVariableBase.cc

- Cosmetics.

M Core/Thread/Thread.cc

- Fix a warning for John. ;)

M Core/Disclosure/TypeUtils.cc

- 64 bit functions that become multiply defined if left in for Snow Leopard.

M Core/Util/Endian.cc

- White space!

M StandAlone/sub.mk

- Need Core/OS to link.

M StandAlone/tools/puda/varsummary.cc

- 64 bit overloaded function fix for OSX snow leopard.

M configure.ac

- OSX snow leopard fixes.
- NOTE: Not checking in configure because I don't have the correct autoconf version on this
machine. I will fix this in the next commit (coming shortly).

3 lines of code changed in 2 files:

  • Core/Thread: Thread.cc (+3 -2)
dav 2009-10-28 12:15 Rev.: 44967

Remove circular dependency by moving WAIT_FOR_DEBUGGER stuff to Core/Exceptions

12 lines of code changed in 1 file:

  • Core/Thread: Thread_pthreads.cc (+12 -7)
luitjens 2009-10-28 08:43 Rev.: 44962

Possible fix for circular dependency.

2 lines of code changed in 1 file:

  • Core/Thread: Thread_pthreads.cc (+2 -5)
luitjens 2009-10-27 14:51 Rev.: 44958

Added a new SCI_DEBUG called WaitForDebugger.

This will cause sus to wait for a debugger if it crashes or throws an exception.

To use add WaitForDebugger:+ to your SCI_DEBUG line. When a crash occurs you will see a message that contains
hostname and the pid. Then open a terminal on the host and attach gdb using `gdb --pid <pid>`.

5 lines of code changed in 1 file:

  • Core/Thread: Thread_pthreads.cc (+5 -2)
luitjens 2009-08-26 12:18 Rev.: 44661

updated commented out debugging statements to match the correct syntax

2 lines of code changed in 1 file:

  • Core/Thread: Thread_pthreads.cc (+2 -2)
luitjens 2009-07-08 09:51 Rev.: 44471

Supress the printing of a stacktrace and abort messages when the signal was SIGINT. SIGINT is either generated by the user by hitting control-c or by the mpi library when an error is detected on another process. In either case the stacktrace and abort information is not useful and instead obscures the real stacktrace and abort messages.

32 lines of code changed in 4 files:

  • Core/Thread: Thread.cc (+14 -9), Thread.h (new), Thread_pthreads.cc (+17 -4)
jas 2009-03-27 10:44 Rev.: 43893

Remove sgi woff ifdefs.

0 lines of code changed in 1 file:

  • Core/Thread: Thread.cc (-4)
jas 2009-03-09 16:43 Rev.: 43521

Remove sgi_stl_warnings include line

0 lines of code changed in 12 files:

  • Core/Thread: CleanupManager.cc (new), Mailbox.h (new), ThreadError.h (-2), ThreadGroup.h (new), ThreadPool.h (-2), WorkQueue.h (-2)
jas 2009-03-09 13:54 Rev.: 43468

Remove CMakeLists.txt

0 lines of code changed in 1 file:

  • Core/Thread: CMakeLists.txt (del)
luitjens 2009-02-14 12:27 Rev.: 43225

Moved WAIT_FOR_DEBUGGER macro to Assert.h

2 lines of code changed in 2 files:

  • Core/Thread: Thread.h (-3), Thread_pthreads.cc (+2 -1)
harman 2009-02-10 15:16 Rev.: 43172

Changed the datatype of the atomic counters to long long to avoid an overflow error. An overflow can still occur but it will be much much later.

0 lines of code changed in 4 files:

  • Core/Thread: AtomicCounter.h (changed), AtomicCounter_default.cc (new)
dav 2009-01-30 19:45 Rev.: 43025

Turn off debug message.

1 lines of code changed in 1 file:

  • Core/Thread: Thread.cc (+1 -1)
jas 2009-01-26 13:49 Rev.: 42976

Add the MIT License to every *.cc, *.h,*.F, and sub.mk file.

60 lines of code changed in 4 files:

  • Core/Thread: Time_win32.cc (+30), share.h (+30)
dav 2009-01-21 20:45 Rev.: 42940

Cleanup for fix for exit_handler

1 lines of code changed in 1 file:

  • Core/Thread: Thread_pthreads.cc (+1 -1)
dav 2009-01-21 20:44 Rev.: 42939

Fix for exit_handler

9 lines of code changed in 1 file:

  • Core/Thread: Thread_pthreads.cc (+9 -2)
dav 2009-01-21 16:26 Rev.: 42930


Cleaning up the "thread cleanup" routines. Added "handleCleanup()". Note, this has
been tested with Uintah (which only (currently) uses one thread) and not with SCIRun
or any (truly) multi-threaded code... though it 'should work'. The issue is involved
is when (if) thread::exit is called for all threads. As best I can tell, if exitAll()
is called, then individual threads never call "Thread::exit()". Therefore I had to
place the handleCleanup() in the exitAll() routine. (Again, this should work, but hasn't
been tested on multiple threads.) It is also called in the Thread::exit() in case only
a single thread wants to exit.

(If you plan to use this facility for non-Uintah, see previous commit for more info
on this facility (or read comments in the code).)

M Thread.cc
M Thread.h

M Thread_pthreads.cc

* Update of exitAll to call handleCleanup()
* Cosmetics:
* moved "{" into standard location.
* renamed 't' to 'thread_priv' so I could search for it.

75 lines of code changed in 3 files:

  • Core/Thread: Thread.cc (+20 -4), Thread.h (+22 -5), Thread_pthreads.cc (+33 -28)
luitjens 2009-01-15 16:28 Rev.: 42899

move the wait for debugger command before the cleanup function

3 lines of code changed in 1 file:

  • Core/Thread: Thread_pthreads.cc (+3 -2)
dav 2009-01-12 17:53 Rev.: 42874

Added the ability to specify an "abort" handing/cleanup function for a
thread. If this routine is specified, then it will be called from the
segfault/segbus signal abort handling routine. This allows the main
program to tell its thread how to clean up. It was inspired by the
need for Uintah to tell MPI to abort when one process in a large MPI
run dies.

M Core/Thread/Thread.h

* Added (g/s)etCleanupFunction() which allows a program to give its
thread a clean up routine to be called if the program segfaults
(segbus's).
* Indentation. Cleanup of '{'s.

M Core/Thread/Thread.cc

* Added (g/s)etCleanupFunction() code.
* Cleanup/Indentation.

M Core/Thread/Thread_pthreads.cc

* Only real coding update is this...

> Thread::ptr2cleanupfunc funcPtr = Thread::self()->getCleanupFunction();
> if( funcPtr != NULL ) {
> (*funcPtr)();
> }

...which calls the cleanup function if it was specified.

* Indentation/Cleanup.

M Packages/Uintah/StandAlone/sus.cc

* Added abortCleanupFunc that will be called in the Uintah thread segfaults (segbus, etc).
* Cleanup #includes a little.

431 lines of code changed in 3 files:

  • Core/Thread: Thread.cc (+98 -83), Thread.h (+298 -277), Thread_pthreads.cc (+35 -28)
Generated by StatSVN 0.4.0