X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=fakethr.h;h=7c82aa6d691af815f27993211f921de6f4a9c99a;hb=c33ef3ac654cbe35caea1d36f34c68f0e4a134ba;hp=596e8a9e3ec0bf8ce20dfaabeb04020855c7f297;hpb=51dd5992be029393cb3f221313a1a6ec2a76c21a;p=p5sagit%2Fp5-mst-13.2.git diff --git a/fakethr.h b/fakethr.h index 596e8a9..7c82aa6 100644 --- 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 struct thread *perl_os_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 { - struct thread * thread; + struct perl_thread * thread; struct perl_wait_queue * next; }; typedef struct perl_wait_queue *perl_cond; @@ -34,7 +43,7 @@ struct thread_intern { * 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) @@ -54,3 +63,13 @@ struct thread_intern { #define THREAD_POST_CREATE(t) NOOP #define YIELD NOOP + +/* + * Local variables: + * c-indentation-style: bsd + * c-basic-offset: 4 + * indent-tabs-mode: t + * End: + * + * ex: set ts=8 sts=4 sw=4 noet: + */