/[svn]/linuxsampler/trunk/src/testcases/ThreadTest.cpp
ViewVC logotype

Log of /linuxsampler/trunk/src/testcases/ThreadTest.cpp

Parent Directory Parent Directory | Revision Log Revision Log


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

Revision 3766 - (view) (download) (annotate) - [select for diffs]
Modified Mon Apr 6 12:41:49 2020 UTC (3 years, 11 months ago) by schoenebeck
File length: 3782 byte(s)
Diff to previous 3552
Fixed deadlocks (e.g. when restarting engines).

* Individual thread implementations (e.g. disk thread, etc.):
  Disable thread cancellation on critical sections, e.g. when holding
  mutex locks, to prevent deadlocks if thread is stopped and/or
  restarted.

* Added TestCancel() calls to thread implementations if missing.

* No need to wrap Thread::TestCancel() calls into
  CONFIG_PTHREAD_TESTCANCEL macro conditions (since TestCancel() is
  already a stub on systems which don't have pthread_testcancel()
  available).

* If compiled for debugging: give each thread a human readable name
  to simplify debugging of multi-threading issues.

* DiskThreadBase: TestCancel() and pthread_testcancel() calls are
  per-se redundant, so only call TestCancel().

* Added missing override keywords to silent compiler warnings.

* Bumped version (2.1.1.svn54).


Revision 3552 - (view) (download) (annotate) - [select for diffs]
Modified Tue Aug 6 13:18:59 2019 UTC (4 years, 7 months ago) by schoenebeck
File length: 3819 byte(s)
Diff to previous 1649
* Test cases: Fixed thread tests segfaulting on Linux.


Revision 1649 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jan 25 15:06:02 2008 UTC (16 years, 2 months ago) by nagata
File length: 3794 byte(s)
Diff to previous 1221
* added a new config option --enable-pthread-testcancel, which uses
pthread_testcancel() instead of asynchronous canceling (needed for OSX)


Revision 1221 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 6 18:50:03 2007 UTC (16 years, 9 months ago) by schoenebeck
File length: 3734 byte(s)
Diff to previous 503
* fixed several issues in fundamental "Thread" class: set scheduling
  policy and priority on thread level, set a minimum stack size for
  thread (TODO: a reasonable value yet to be tested), bugfix: non-RT
  threads simply inherited properties of starting thread instead of
  setting their own policy and priority
* updated and fixed test cases (haven't been touched in a while, but
  are now all running successfully through all cases)


Revision 503 - (view) (download) (annotate) - [select for diffs]
Modified Fri Apr 29 20:43:07 2005 UTC (18 years, 11 months ago) by schoenebeck
File length: 3558 byte(s)
Diff to previous 211
* updated unit tests


Revision 211 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jul 25 23:27:41 2004 UTC (19 years, 8 months ago) by schoenebeck
File length: 3537 byte(s)
Diff to previous 63
* src/linuxsampler.cpp: tidied up a bit, "initialization completed"
  message shown only after the server is actually running
* src/testcases/: print the name of each test suite before running the
  tests of the suite, added first tests against the LSCP server using a
  socket connection to the LSCP server (tests for the following LSCP
  commands: "ADD CHANNEL", "GET CHANNELS", "REMOVE CHANNEL")


Revision 63 - (view) (download) (annotate) - [select for diffs]
Modified Tue May 4 18:52:24 2004 UTC (19 years, 10 months ago) by schoenebeck
File length: 2593 byte(s)
Diff to previous 57
* src/common/Thread.cpp: threads are now stoppable even if they are
  waiting for a condition
* src/common/Condition.cpp: fixed little misbehavior of Set() method,
  which locked the Condition object on return
* src/testcases: added a couple of new unit tests (against classes
  'Mutex', 'Condition' and 'Thread')


Revision 57 - (view) (download) (annotate) - [select for diffs]
Added Sun May 2 17:45:43 2004 UTC (19 years, 11 months ago) by schoenebeck
File length: 1525 byte(s)
* src/common/Thread.cpp: method StartThread() now blocks until thread
  actually runs, mlockall() will only be applied for realtime threads
* libtoolized liblinuxsampler
* initiated automatic unit tests against the LinuxSampler codebase
  (see src/testcases): already added a couple of tests for the Thread and
  Mutex classes, you have to explicitly compile the unit tests by running
  'make testcases' (you need to have cppunit installed though) and then you
  can run the console version of the test runner by calling
  'src/testcases/linuxsamplertest'
* src/Sampler.h: added API documentation


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

  ViewVC Help
Powered by ViewVC