summaryrefslogtreecommitdiff
path: root/thread.h
Commit message (Collapse)AuthorAgeFilesLines
* free TLS slot properly on WindowsGurusamy Sarathy2000-08-211-0/+8
| | | p4raw-id: //depot/perl@6748
* Getting perlio and threads to compileLupe Christoph2000-08-111-1/+1
| | | | | | | Message-ID: <20000809113554.G23160@alanya.lupe-christoph.de> (the Solaris version changes in Configure skipped) p4raw-id: //depot/perl@6594
* rename totally bletcherous SvLOCK() thingy (doesn't do what theGurusamy Sarathy2000-07-141-0/+10
| | | | | name suggests anyway) p4raw-id: //depot/perl@6398
* integrate cfgperl changes#6293..6324 into mainlineGurusamy Sarathy2000-07-111-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | p4raw-link: @6324 on //depot/cfgperl: 81bf48a6dbba4b295dfa172a17ca70b654dbf225 p4raw-link: @6293 on //depot/cfgperl: 6e37ea6052902cde1aeb08a2129ffc7c8ea53736 p4raw-id: //depot/perl@6369 p4raw-branched: from //depot/cfgperl@6368 'branch in' lib/Win32.pod lib/lib_pm.PL p4raw-deleted: from //depot/cfgperl@6368 'delete in' pod/Win32.pod (@5937..) pod/buildtoc (@6091..) lib/lib.pm.PL (@6227..) pod/Makefile (@6232..) p4raw-integrated: from //depot/cfgperl@6368 'copy in' thread.h (@5656..) lib/warnings/register.pm (@5704..) ext/B/B/Stash.pm (@5972..) lib/CGI/Util.pm (@6034..) util.c (@6217..) gv.c (@6244..) pp.c (@6260..) doop.c (@6269..) pod/perlfunc.pod (@6277..) pp_ctl.c (@6293..) makedef.pl (@6301..) embed.h global.sym objXSUB.h perlapi.c proto.h (@6305..) win32/Makefile (@6307..) Makefile.SH (@6309..) t/op/method.t (@6312..) sv.h (@6315..) 'ignore' op.c (@6273..) 'merge in' embed.pl win32/win32.c (@6305..) p4raw-integrated: from //depot/cfgperl@6324 'merge in' toke.c (@6307..) p4raw-branched: from //depot/cfgperl@6323 'branch in' pod/buildtoc.PL (@6319..) p4raw-integrated: from //depot/cfgperl@6323 'copy in' pod/perl.pod (@6319..) pod/perltoc.pod (@6322..) 'merge in' MANIFEST (@6319..) p4raw-branched: from //depot/cfgperl@6319 'branch in' pod/Makefile.SH p4raw-integrated: from //depot/cfgperl@6315 'ignore' pp_hot.c (@6313..) p4raw-integrated: from //depot/cfgperl@6311 'copy in' ext/POSIX/POSIX.pod (@6296..) p4raw-integrated: from //depot/cfgperl@6307 'merge in' doio.c (@6223..)
* avoid using context pointer in MUTEX_INIT() et al; remove theGurusamy Sarathy2000-03-111-37/+15
| | | | | *_NOCONTEXT variants to keep it simple p4raw-id: //depot/perl@5651
* various shenanigans in change#5342Gurusamy Sarathy2000-02-291-2/+4
| | | | | p4raw-link: @5342 on //depot/perl: ba869debd80c55cfae8e9d4de0991d62f9efcb9b p4raw-id: //depot/perl@5343
* support fetching current interpreter from TLS under useithreadsGurusamy Sarathy2000-02-291-122/+133
| | | p4raw-id: //depot/perl@5342
* usethreads build fixups for NeXTstep (as suggested by Hans Mulder)Gurusamy Sarathy2000-01-021-1/+3
| | | p4raw-id: //depot/perl@4746
* bring in basic threads stuff under USE_ITHREADSGurusamy Sarathy1999-12-231-59/+107
| | | p4raw-id: //depot/perl@4704
* make die/warn and other diagnostics go to wherever STDERR happensGurusamy Sarathy1999-10-061-1/+1
| | | | | | to point at; change places that meant Perl_debug_log rather than PerlIO_stderr() p4raw-id: //depot/perl@4302
* hand-apply whitespace mutiliated patchHans Mulder1999-07-051-2/+0
| | | | | | Message-Id: <3.0.6.32.19990607144642.03079100@ous.edu> Subject: [PATCH 5.005_57]Updated VMS patch p4raw-id: //depot/perl@3594
* more complete support for implicit thread/interpreter pointer,Gurusamy Sarathy1999-06-091-22/+29
| | | | | | | | | | | | | | | | | | | | | enabled via -DPERL_IMPLICIT_CONTEXT (all changes are noops without that enabled): - USE_THREADS now enables PERL_IMPLICIT_CONTEXT, so dTHR is a noop; tests pass on Solaris; should be faster now! - MULTIPLICITY has been tested with and without PERL_IMPLICIT_CONTEXT on Solaris - improved function database now merged with embed.pl - everything except the varargs functions have foo(a,b,c) macros to provide compatibility - varargs functions default to compatibility variants that get the context pointer using dTHX - there should be almost no source compatibility issues as a result of all this - dl_foo.xs changes other than dl_dlopen.xs untested - still needs documentation, fixups for win32 etc Next step: migrate most non-mutex variables from perlvars.h to intrpvar.h p4raw-id: //depot/perl@3524
* remove _() non-ansismGurusamy Sarathy1999-06-021-1/+1
| | | p4raw-id: //depot/perl@3518
* The HP-UX threads patch (change #3028) is needed also here.Jarkko Hietaniemi1999-03-021-0/+14
| | | | | p4raw-link: @3028 on //depot/maint-5.005/perl: d9761d5fa9df9e662778f8ca3ed55c2e3037a72a p4raw-id: //depot/cfgperl@3052
* Change#2441 aftermath.Jarkko Hietaniemi1998-12-031-0/+8
| | | p4raw-id: //depot/cfgperl@2443
* various fixes for race conditions under threads: mutex locks basedGurusamy Sarathy1998-11-291-8/+7
| | | | | | | | | | | on PL_threadnum were seriously flawed, since it means more than one thread could enter the critical region; PL_na was global instead of thread-local; child thread could finish and free thr structures before Thread->new() got around to creating the Thread object; cv_clone() needed locking, as it mucks with PL_comppad and other global data; new_struct_thread() needed to lock template-thread's mutex while copying its data p4raw-id: //depot/perl@2385
* Replace ATTR_JOINABLE with true Configure probeJarkko Hietaniemi1998-11-021-10/+0
| | | | | | | | | | for PTHREAD_CREATE_JOINABLE (or equivalent: PTHREAD_CREATE_UNDETACHED or __UNDETACHED). Remove ATTR_JOINABLE itself: Thread.xs uses PTHREAD_CREATE_JOINABLE (or equivalent) directly. Really scan for <mach/cthreads.h> only if usethreads. p4raw-id: //depot/cfgperl@2181
* ATTR_JOINABLE logic, based on (private email)Neale Ferguson1998-10-271-9/+7
| | | | | | Subject: Some little diffs Message-ID: <36350969.DA33E7B4@mailbox.tabnsw.com.au> p4raw-id: //depot/cfgperl@2096
* Mach cthreads support based on:Brian Harrison1998-10-271-0/+62
| | | | | | | | | | | | | Subject: perl5.005_02 patch for mthreads To: perl5-porters@perl.org Message-ID: <MLIST_Pine.GSO.4.04.9810231410220.11111-200000@sulaco.eos.home.net> Pthread yield probe (dejavu) Cosmetic nanochange for the union semun output. Better inttypes.h probe. Undo the 'void *' $selecttype probe from #1971 because it breaks the $selectminbits test. p4raw-id: //depot/cfgperl@2095
* DJGPP feedback for #2028.Jarkko Hietaniemi1998-10-221-4/+2
| | | p4raw-id: //depot/cfgperl@2033
* VM/ESA feedback for #2028.Jarkko Hietaniemi1998-10-211-4/+2
| | | p4raw-id: //depot/cfgperl@2031
* OLD_PTHREADS_API reorganizing.Jarkko Hietaniemi1998-10-201-18/+43
| | | p4raw-id: //depot/cfgperl@2028
* Thinko at PTHREADS_CREATED_JOINABLE.Jarkko Hietaniemi1998-10-201-1/+1
| | | p4raw-id: //depot/cfgperl@2022
* YIELD more robustly.Jarkko Hietaniemi1998-10-191-1/+13
| | | p4raw-id: //depot/cfgperl@2020
* VM/ESA (and OS390) are in between of OLD_PTHREADS_API andJarkko Hietaniemi1998-10-191-1/+4
| | | | | the 'new' one (just like DJGPP, it seems). p4raw-id: //depot/cfgperl@2019
* check in all confperl changes as of change#1964 into cfgperlGurusamy Sarathy1998-10-151-24/+16
| | | | | p4raw-link: @1964 on //depot/confperl: 2d85315bb227e0962a693eaaadc3f40ca2fbf49b p4raw-id: //depot/cfgperl@1971
* provide locked access to string table for USE_THREADSGurusamy Sarathy1998-09-241-6/+21
| | | p4raw-id: //depot/perl@1863
* tweaked version of suggested patchIlya Zakharevich1998-08-021-1/+1
| | | | | | Message-Id: <199807210140.VAA17186@monk.mps.ohio-state.edu> Subject: [PATCH 5.004_75] Enable -DS p4raw-id: //depot/maint-5.005/perl@1701
* PL_ stuff for threadsNick Ing-Simmons1998-07-181-7/+7
| | | p4raw-id: //depot/ansiperl@1534
* [asperl] integrate mainline changes (untested)Gurusamy Sarathy1998-05-181-3/+5
|\ | | | | p4raw-id: //depot/asperl@1010
| * [win32] integrate mainlineGurusamy Sarathy1998-05-141-3/+5
| | | | | | p4raw-id: //depot/win32/perl@973
* | [asperl] add AS patch#17Gurusamy Sarathy1998-04-211-1/+1
| | | | | | p4raw-id: //depot/asperl@893
* | [asperl] integrate mainline changesGurusamy Sarathy1998-03-011-0/+2
|\ \ | |/ | | p4raw-id: //depot/asperl@607
| * dos-djgpp updateLaszlo Molnar1998-02-251-0/+2
| | | | | | p4raw-id: //depot/perl@584
* | [asperl] integrate win32 branch contentsGurusamy Sarathy1998-02-091-2/+41
|\ \ | |/ | | p4raw-id: //depot/asperl@493
| * [win32] Fix minor problems with non USE_THREADS build. win32 branchGurusamy Sarathy1998-02-031-0/+2
| | | | | | | | | | now looks 5.004_57-ready. p4raw-id: //depot/win32/perl@456
| * Introduced thr->threadsvp and THREADSV() for faster per-threadMalcolm Beattie1998-02-021-2/+39
| | | | | | | | | | | | | | variables. Moved threadnum to a per-interpreter variable and made dTHR and lock/unlock of sv_mutex bypass the get/lock unless more than one thread may be running. Minor tweaks to Thread.xs. p4raw-id: //depot/perl@453
* | [asperl] added AS patch#2Gurusamy Sarathy1998-01-301-0/+4
|/ | | p4raw-id: //depot/asperl@443
* Fix perl_os_thread typedef for pthreads. Tweak SvTAINT so thatMalcolm Beattie1997-12-101-1/+0
| | | | | | | sv_setfoo functions go back to not needing dTHR. Fix Configure to check for already-existing -thread on archname and to check better for d_pthread_created_joinable. p4raw-id: //depot/perl@356
* embed.pl now reads *var*.h to do its stuff.Nick Ing-Simmons1997-11-301-119/+0
| | | | | | | | | | | | Split generated embed.h into two - new embedvar.h is #included when 'op' etc. will not mess up proto.h etc. Removed #define foo (thr->Tfoo) from thread.h Added some 'missing' symbols to global.sym, removed those in the *var*.h files Has build all MULTIPLICITY/USE_THREADS options on win32 with VC++ (and passed tests), but not with exactly this set of files. p4raw-id: //depot/ansiperl@338
* Globals and structs via macros - part 1 of NNick Ing-Simmons1997-11-291-101/+0
| | | | | | | | | | - introduce perlvars.h intrpvar.h and thrdvar.h - change perl.h and thread.h to include them with appropriate macros defined - result is status-quo but with macros - next step is to tweak embed.* to capitalize on new easy-to-find info. p4raw-id: //depot/ansiperl@337
* GCC + Threads on Win32 - best gcc results yetNick Ing-Simmons1997-11-291-0/+2
| | | p4raw-id: //depot/ansiperl@331
* AIX patch (including Configure support for {sched,pthread}_yield,Jarkko Hietaniemi1997-11-251-7/+11
| | | | | | | pthread initial detach state, renaming perl_thread to perl_os_thread and struct thread to struct perl_thread): Subject: Re: _54 on AIX p4raw-id: //depot/perl@290
* Rename perl_thread to perl_os_thread.Malcolm Beattie1997-11-251-2/+2
| | | p4raw-id: //depot/perl@289
* $_ is now per-thread (rather a lot of changes). Only tested underMalcolm Beattie1997-11-211-1/+1
| | | | | *-linux-thread at the moment. p4raw-id: //depot/perl@274
* Integrate mainline changes into win32 branch. Now would be a good timeGurusamy Sarathy1997-11-141-3/+3
|\ | | | | | | | | to reverse integrate the win32 branch into mainline. p4raw-id: //depot/win32/perl@253
| * Rewrite thread return code to distinguish between ordinary returnMalcolm Beattie1997-11-131-2/+2
| | | | | | | | | | | | | | | | | | | | and die() and make join propagate the die. Add tiny method eval which just does "return eval { shift->join; }". Add Thread::Specific class for access to thread specific user data along with specific.t. Rename Class to classname throughout Thread.xs for consistency. Fix pp_specific to pp_threadsv in global.sym. Add support to pp_entersub in pp_hot.c to lock stash for static locked methods. p4raw-id: //depot/perl@248
| * Change CONTEXT to PERL_CONTEXT throughout source (since the #defineMalcolm Beattie1997-11-131-1/+1
| | | | | | | | | | | | | | to avoid the Digital UNIX clash no longer works). Changed the #ifdef in pp_sys.c for whether getnet* function get protoyped (since the default had a broken prototype for getnetbyaddr). p4raw-id: //depot/perl@247
* | Initial (untested) integration of mainline changes.Gurusamy Sarathy1997-11-111-1/+3
|\ \ | |/ | | p4raw-id: //depot/win32/perl@234
| * Typo in thread.h: ADD_THREAD_INTERN should be HAVE_THREAD_INTERNMalcolm Beattie1997-11-111-1/+1
| | | | | | p4raw-id: //depot/perl@233