Commit Graph

21 Commits

Author SHA1 Message Date
Michael VAN CANNEYT
1ded960fc8 * Char -> AnsiChar 2023-07-14 17:26:09 +02:00
marco
018be5c22c * add pthread_attr_destroy, due to Vincent's follow up to mantis #25416
git-svn-id: trunk@26223 -
2013-12-12 10:13:41 +00:00
pierre
32f7104ffe * Fix failure of webtbs/tw17560:
the C structure sem (also TSemaphore record) used in cthreads unit
    inside cIntSemaphoreInit function via
    a GetMem(sizeof(TSempahore). sem was a simple cint
    value which lead to memoryt overwriting past end of
    allocated memory in sem_XXX calls.

git-svn-id: trunk@19176 -
2011-09-22 11:37:27 +00:00
marco
c477df5046 * TCriticalSection.Tryenter support (Mantis 15928) + short test/demo
tested on FreeBSD (general Unix) and Windows. Note that Haiku seems 
    to have a native threadmgr rather than the Unix one. Will notify 
    maintainer (Olivier)

git-svn-id: trunk@15026 -
2010-03-21 11:34:05 +00:00
Jonas Maebe
be5709fcfd + pthread_cond_broadcast() definition
git-svn-id: trunk@12856 -
2009-03-04 20:10:05 +00:00
Jonas Maebe
1a1fc1357d * honour the specified stack size when creating new threads on unix
platforms + test (mantis #12942)

git-svn-id: trunk@12527 -
2009-01-08 18:37:24 +00:00
Jonas Maebe
4457538435 * explicitly unmask SIGSEGV, SIGILL, SIGBUS and SIGFPE at the start
of a new thread (should fix #9073)

git-svn-id: trunk@8265 -
2007-08-11 20:59:37 +00:00
Jonas Maebe
edafc80d8c * use pthread_kill() for Suspend/Resume in cthreads
git-svn-id: trunk@5280 -
2006-11-07 21:40:58 +00:00
Jonas Maebe
08a151077d * pthread_self returns a pthread_t, not a cint
git-svn-id: trunk@5275 -
2006-11-07 16:43:31 +00:00
Almindor
ec1b8a90a6 * fixes compilation due to neli-ism
+ fixed wrong pthreads declaration for freeBSD

git-svn-id: trunk@4806 -
2006-10-05 16:50:49 +00:00
peter
4ace790492 * remove $Log
git-svn-id: trunk@231 -
2005-06-07 09:47:55 +00:00
fpc
790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00
fpc
50778076c3 initial import
git-svn-id: trunk@1 -
2005-05-16 18:37:41 +00:00
marco
6f86d5b12a * added condtimedwait 2005-04-09 20:28:04 +00:00
peter
e417e34496 * truncate log 2005-02-14 17:13:06 +00:00
marco
0db4315ea9 * rtlevent kraam. Checked (compile): Linux, FreeBSD, Darwin, Windows
Check work: ask Neli.
2004-12-22 21:29:24 +00:00
marco
0ae95485ef * small glitch fixes 2004-09-10 15:15:45 +00:00
Jonas Maebe
159912ec47 * fixed definition of pthread_mutex_t for non-linux targets (and for
linux as well, actually).
  * base libpthread definitions are now in ptypes.inc, included in unixtype
    They sometimes have an extra underscore in front of their name, in
    case they were also exported by the packages/base/pthreads unit, so
    they can keep their original name there
  * cthreadds unit now imports systuils, because it uses exceptions (it
    already did so before as well)
  * fixed many linux definitions of libpthread functions in pthrlinux.inc
    (integer -> cint etc)
  + added culonglong type to ctype.inc
2004-09-09 20:29:06 +00:00
marco
8efff6e425 * basicevent, still untested 2004-05-23 15:30:55 +00:00
michael
08971e92b0 + Redefined ppthread_mutex_t 2003-11-27 20:24:10 +00:00
marco
bea886ca73 * moved from systhrds.pp 2003-11-18 22:33:42 +00:00