summaryrefslogtreecommitdiff
path: root/thread.h
Commit message (Collapse)AuthorAgeFilesLines
* thread.h: simplify cpp conditionalsAaron Crane2017-10-211-11/+5
|
* Properly NOOP macros in thread.hDagfinn Ilmari Mannsåker2017-07-031-12/+12
|
* clang thread safety annotationsJarkko Hietaniemi2015-11-231-2/+10
| | | | | | | | | | | | http://clang.llvm.org/docs/ThreadSafetyAnalysis.html Static (compile-time) annotations for declaring the multithreaded behavior of functions, variables, and capabilities (like mutexes). Available since about clang 3.5. ./Configure -des -Dusedevel -Dusethreads -Dcc=clang -Accflags='-Wthread-safety' clang -Wthread-safety then checks the validity of the annotations.
* Replace common Emacs file-local variables with dir-localsDagfinn Ilmari Mannsåker2015-03-221-6/+0
| | | | | | | | | | | | | | | | An empty cpan/.dir-locals.el stops Emacs using the core defaults for code imported from CPAN. Committer's work: To keep t/porting/cmp_version.t and t/porting/utils.t happy, $VERSION needed to be incremented in many files, including throughout dist/PathTools. perldelta entry for module updates. Add two Emacs control files to MANIFEST; re-sort MANIFEST. For: RT #124119.
* Use PERL_UNUSED_RESULT.Jarkko Hietaniemi2014-06-021-3/+1
| | | | | | | (1) Enhance its description. (2) Simplify it: define only if has warn_unused_result. (3) Make it use STMT_START { ... } STMT_END to be less GNU-extensiony. (4) Redo 04783dc7 ("fix 'ignoring return value' compiler warnings") with it.
* fix 'ignoring return value' compiler warningsDavid Mitchell2013-11-241-1/+3
| | | | | | | | | | | Various system functions like write() are marked with the __warn_unused_result__ attribute, which causes an 'ignoring return value' warning to be emitted, even if the function call result is cast to (void). The generic solution seems to be int rc = write(...); PERL_UNUSED_VAR(rc);
* silence some compiler warningsDavid Mitchell2013-11-131-1/+1
| | | | | | | Actually, most of this commit is adding (void) to various function returns where we know its ok to ignore the return value. This doesn't actually silence the -Wunused-result warning (thanks a bundle gcc), but at least it marks our intentions.
* Remove DG/UX support.Nicholas Clark2013-05-271-4/+0
| | | | | DG/UX was a Unix sold by Data General. The last release was in April 2001. It only runs on Data General's own hardware.
* Remove the VM/ESA port.Nicholas Clark2012-08-311-4/+1
| | | | | VM/ESA was a mainframe OS. IBM ended service on it in June 2003. It was superseded by Z/VM.
* update the editor hints for spaces, not tabsRicardo Signes2012-05-291-2/+2
| | | | | This updates the editor hints in our files for Emacs and vim to request that tabs be inserted as spaces.
* Remove all the 5005threads specific mutex macros, which are now vestigial.Nicholas Clark2009-05-211-40/+0
|
* Need even more stack for VMS_IA64-ithread.Craig A. Berry2009-01-171-1/+5
|
* Add MUTABLE_AV(), and remove (AV *) casts from headers.Nicholas Clark2008-10-271-1/+1
| | | p4raw-id: //depot/perl@34608
* Add editor blocks to some header files.Marcus Holland-Moritz2008-01-011-0/+10
| | | p4raw-id: //depot/perl@32793
* Removed unused var in a macroAndy Lester2006-04-161-2/+1
| | | | | Message-ID: <20060416043253.GA3438@petdance.com> p4raw-id: //depot/perl@27834
* [patch@27529] thread.h - VMS needs more stackJohn E. Malmberg2006-03-211-0/+5
| | | | | | From: "John E. Malmberg" <wb8tyw@qsl.net> Message-id: <441ADE4D.2090207@qsl.net> p4raw-id: //depot/perl@27563
* Update copyright years (including some years where we made changes butNicholas Clark2006-01-081-1/+1
| | | | | did not update) p4raw-id: //depot/perl@26732
* More copyright updatesRafael Garcia-Suarez2006-01-041-1/+1
| | | p4raw-id: //depot/perl@26652
* Get rid of hardcoded string length.Gisle Aas2006-01-041-1/+1
| | | p4raw-id: //depot/perl@26647
* Update copyrights.Rafael Garcia-Suarez2005-03-301-1/+2
| | | p4raw-id: //depot/perl@24106
* Avoid segfault when pthread_key_create failsGisle Aas2005-01-051-2/+1
| | | | | Message-ID: <lracroz1gg.fsf@caliper.activestate.com> p4raw-id: //depot/perl@23749
* Update copyright noticesRafael Garcia-Suarez2004-03-161-1/+1
| | | p4raw-id: //depot/perl@22509
* Make panics a bit more verbose to ease debugging.Marcus Holland-Moritz2004-02-291-32/+64
| | | p4raw-id: //depot/perl@22417
* Redundancy removal from Brian De Pradine;Jarkko Hietaniemi2003-06-131-1/+0
| | | | | | both the forms, pthread_mutexattr_settype() and pthread_mutexattr_setkind_np(), exist on z/OS. p4raw-id: //depot/perl@19767
* z/OS: More threaded build tweaks from Brian De Pradine--Jarkko Hietaniemi2003-05-011-5/+7
| | | | | apparently now it works! p4raw-id: //depot/perl@19368
* z/OS: changes for building threaded from "Brian De Pradine"Jarkko Hietaniemi2003-04-221-1/+5
| | | | | <PRADINE@uk.ibm.com>. p4raw-id: //depot/perl@19306
* Fix up Larry's copyright statements to my best knowledge.Jarkko Hietaniemi2003-04-161-1/+1
| | | | | | | (Lots of Perl 5 source code archaeology was involved.) Larry didn't make strangled noises when I showed him the patch, either :-) p4raw-id: //depot/perl@19242
* Reverse copyright update (#18801) for files not changed in 2003.Hugo van der Sanden2003-03-021-1/+1
| | | p4raw-id: //depot/perl@18807
* Update all copyrights to 2003, from JarkkoHugo van der Sanden2003-03-021-1/+1
| | | p4raw-id: //depot/perl@18801
* $0 mofifying part IJarkko Hietaniemi2002-12-021-0/+11
| | | | | | Subject: [PATCH] $0 modifying Message-ID: <20021130181651.GA5876@kosh.hut.fi> p4raw-id: //depot/perl@18229
* Happy chainsaw stories; The removal of the 5005 threadsH.Merijn Brand2002-10-191-57/+2
| | | | | Still imcomplete. Configure will follow p4raw-id: //depot/perl@18030
* Tru64 and gcc and threadsH.Merijn Brand2002-10-091-1/+1
| | | | | Sat, 5 Oct 2002; Jarkko Hietaniemi <jhi@iki.fi> p4raw-id: //depot/perl@17983
* DG/UX updates from Takis Psarogiannakopoulos.Jarkko Hietaniemi2002-03-111-1/+1
| | | p4raw-id: //depot/perl@15151
* Sprinkle some copyrights (use the oldest timestamp toJarkko Hietaniemi2002-01-241-0/+9
| | | | | | be found in the repository, which is most often not right, but at least consistent) p4raw-id: //depot/perl@14400
* Changes USE_THREADS to USE_5005THREADS in the entire source.Artur Bergman2001-08-271-4/+4
| | | | | | Thanks to H. Merijn Brand for the patch. Some of the comments and or guards might be removable in perl.h now. p4raw-id: //depot/perl@11758
* Make perl fork()-safe (in a slightly limited way) even onGurusamy Sarathy2001-07-201-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | platforms that don't have pthread_atfork() (extension of the fix in change#11151). Note that this will not help extensions that call fork() directly in C, or that link to libraries that call fork() directly. Such cases must be fixed to either call PerlProc_fork(), or call atfork_lock() in parent before the calling the function that forks and call atfork_unlock() in both parent and child immediately after the fork(). (There are no worries if C code calls exec() in the child immediately after a fork(). Only cases where the child calls perl's API functions (including New()) after the fork() are problematic.) This change also eliminates the use of vfork() from perl, since all such uses were violating the severe restrictions on modifying the state of the process between the vfork() and the exec(). This is a modified version of patches suggested by Abhijit Menon-Sen and Richard Soderberg. p4raw-link: @11151 on //depot/perl: 50dd6e574ff39b609595ddb16b2fe9f625a26f8c p4raw-id: //depot/perl@11423
* fix PTHREAD_ATFORK croaking too early, too oftenCoral2001-07-171-11/+2
| | | | | Message-Id: <200107162125.f6GLPJ345261@moonlight.crystalflame.net> p4raw-id: //depot/perl@11392
* Make PTHREAD_ATFORK() to croak if HAS_FORK, noop otherwise.Jarkko Hietaniemi2001-07-121-2/+8
| | | p4raw-id: //depot/perl@11337
* pthread_atfork on FreeBSD - Part 1: #ifdef HAS_PTHREAD_ATFORK coral2001-07-121-2/+6
| | | | | Message-Id: <200107122316.f6CNGoq09171@moonlight.crystalflame.net> p4raw-id: //depot/perl@11336
* Re: [patch] pthread_atfork bandaidDoug MacEachern2001-07-121-0/+3
| | | | | Message-ID: <Pine.LNX.4.21.0107112342330.28844-100000@mako.covalent.net> p4raw-id: //depot/perl@11297
* Retract #11289.Jarkko Hietaniemi2001-07-121-4/+1
| | | p4raw-id: //depot/perl@11293
* (Retracted by #11289.)Jarkko Hietaniemi2001-07-121-1/+4
| | | p4raw-id: //depot/perl@11289
* perl built with USE_ITHREADS can deadlock during fork() or backticksGurusamy Sarathy2001-07-051-0/+9
| | | | | | | | | | | | | since it doesn't ensure threads other than the one calling fork() aren't holding any locks; the fix is to use pthread_atfork() to hold global locks building perl with -Dusemymalloc exacerbates the problem since Perl_malloc() holds a mutex, and perl's exec() calls New() XXX the code in win32thread.h may be needed on platforms that have no pthread_atfork() p4raw-id: //depot/perl@11151
* NetWare port from Guruprasad S <SGURUPRASAD@novell.com>.Jarkko Hietaniemi2001-06-161-0/+4
| | | p4raw-id: //depot/perl@10643
* Thinko noticed by Doug MacEachern.Jarkko Hietaniemi2001-05-171-1/+1
| | | p4raw-id: //depot/perl@10147
* Macrofy the getspecific (and use it also in util.c)Jarkko Hietaniemi2001-05-171-6/+13
| | | p4raw-id: //depot/perl@10143
* Use the unchecked thread-specific key fetch also in Tru64.Jarkko Hietaniemi2001-05-171-2/+4
| | | p4raw-id: //depot/perl@10142
* Quick thread speedupDan Sugalski2001-05-171-1/+6
| | | | | Message-Id: <5.1.0.14.0.20010516175826.01afde08@24.8.96.48> p4raw-id: //depot/perl@10141
* Move the stack desire definition to thread.h.Jarkko Hietaniemi2001-05-161-0/+4
| | | p4raw-id: //depot/perl@10122
* Multiplicity and thread fixes for VMSDan Sugalski2001-05-021-0/+4
| | | | | Message-Id: <5.0.2.1.0.20010502112909.01f24e28@24.8.96.48> p4raw-id: //depot/perl@9960