summaryrefslogtreecommitdiff
path: root/thread.h
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * Initial integration of ansi branch into mainline (untested).Malcolm Beattie1997-11-111-3/+6
| |\ | | | | | | p4raw-id: //depot/perl@230
| | * Get threads working again on Win32Nick Ing-Simmons1997-11-081-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Root cause of fail was init_thread_intern() in new_struct_thread() (which is called in parent thread) clobbering dTHR of parent thread. It is doubtfull if setting 'self' in new_struct_thread() is 'right' but left in for now. p4raw-id: //depot/ansiperl@213
| | * Reverse integrate Malcolm's chanes into localNick Ing-Simmons1997-11-071-1/+41
| | | | | | | | | | | | | | | | | | | | | | | | repository, then import result back into my view of Malcolm's repository. Builds and passes (most) tests with GNU C++/Solaris and Borland C++, Win32. p4raw-id: //depot/ansiperl@210
| | * Raw integrate of latest perlNick Ing-Simmons1997-11-071-5/+5
| | |\ | | | | | | | | p4raw-id: //depot/ansiperl@208
| | * | Builds C++ Borland, MSVC++ (Win32) and GCC++ (Solaris)Nick Ing-Simmons1997-11-051-42/+1
| | | | | | | | | | | | p4raw-id: //depot/ansiperl@203
| | * | Compile(d) at least once with threads on win32 Nick Ing-Simmons1997-11-051-0/+1
| | | | | | | | | | | | | | | | | | | | but did not work p4raw-id: //depot/ansiperl@202
| | * | Integrate mainline @ 18:15 CST 31 Oct 1997Nick Ing-Simmons1997-11-011-1/+41
| | |\ \ | | | | | | | | | | p4raw-id: //depot/ansiperl@199
| | * | | Further ANSI changes now builds and passes (most) testsNick Ing-Simmons1997-10-311-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | with gcc -x c++. p4raw-id: //depot/ansiperl@196
| * | | | Fix up $@ (ERRSV now refers to GvSV(errgv) for non-threaded perl andMalcolm Beattie1997-11-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | thr->errsv for threaded perl). Fix pp_tie and pp_dbmopen to use GvCV(gv) instead of gv so AUTOLOAD stuff works. All tests now pass again for non-threaded perl. Enhanced perl_get_sv to return per-thread magicals where necessary for threaded perl. p4raw-id: //depot/perl@228