This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[perl #41484] qr// stack bug
[perl5.git]
/
fakethr.h
diff --git
a/fakethr.h
b/fakethr.h
index
e09a757
..
8f0def4
100644
(file)
--- a/
fakethr.h
+++ b/
fakethr.h
@@
-1,12
+1,21
@@
+/* fakethr.h
+ *
+ * Copyright (C) 1999, by Larry Wall and others
+ *
+ * You may distribute under the terms of either the GNU General Public
+ * License or the Artistic License, as specified in the README file.
+ *
+ */
+
typedef int perl_mutex;
typedef int perl_key;
typedef int perl_mutex;
typedef int perl_key;
-typedef struct
thread *perl
_thread;
+typedef struct
perl_thread *perl_os
_thread;
/* With fake threads, thr is global(ish) so we don't need dTHR */
#define dTHR extern int errno
struct perl_wait_queue {
/* With fake threads, thr is global(ish) so we don't need dTHR */
#define dTHR extern int errno
struct perl_wait_queue {
- struct
thread *
thread;
+ struct
perl_thread *
thread;
struct perl_wait_queue * next;
};
typedef struct perl_wait_queue *perl_cond;
struct perl_wait_queue * next;
};
typedef struct perl_wait_queue *perl_cond;
@@
-14,7
+23,7
@@
typedef struct perl_wait_queue *perl_cond;
/* Ask thread.h to include our per-thread extras */
#define HAVE_THREAD_INTERN
struct thread_intern {
/* Ask thread.h to include our per-thread extras */
#define HAVE_THREAD_INTERN
struct thread_intern {
- perl_
thread next_run, prev_run;
/* Linked list of runnable threads */
+ perl_
os_thread next_run, prev_run;
/* Linked list of runnable threads */
perl_cond wait_queue; /* Wait queue that we are waiting on */
IV private; /* Holds data across time slices */
I32 savemark; /* Holds MARK for thread join values */
perl_cond wait_queue; /* Wait queue that we are waiting on */
IV private; /* Holds data across time slices */
I32 savemark; /* Holds MARK for thread join values */
@@
-34,7
+43,7
@@
struct thread_intern {
* something a bit different for XS code.
*/
* something a bit different for XS code.
*/
-#define SCHEDULE() return schedule(), op
+#define SCHEDULE() return schedule(),
PL_
op
#define MUTEX_LOCK(m)
#define MUTEX_UNLOCK(m)
#define MUTEX_LOCK(m)
#define MUTEX_UNLOCK(m)