summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-09-09 15:04:26 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-09-09 15:04:26 +0000
commit77a005ab9f9f951511e847aba59fbf2ab1bb17e3 (patch)
tree238d369e377ec323ac774f3e2fcdd6e61a4a3e7b /sv.h
parent1f5895a1c4980727163b32b39405e3fc770ace84 (diff)
downloadperl-77a005ab9f9f951511e847aba59fbf2ab1bb17e3.tar.gz
Rewrite synchronisation of subs/methods and add attrs
extension for specifying 'locked' and 'method' attributes. p4raw-id: //depot/perl@56
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/sv.h b/sv.h
index 2651e43467..884b206fd3 100644
--- a/sv.h
+++ b/sv.h
@@ -131,10 +131,6 @@ struct io {
#define SVphv_SHAREKEYS 0x20000000 /* keys live on shared string table */
#define SVphv_LAZYDEL 0x40000000 /* entry in xhv_eiter must be deleted */
-#ifdef USE_THREADS
-#define SVp_SYNC 0x10000000 /* Synchronised CV or an SV lock */
-#endif /* USE_THREADS */
-
struct xrv {
SV * xrv_rv; /* pointer to another SV */
};
@@ -224,6 +220,8 @@ struct xpvbm {
/* This structure much match XPVCV */
+typedef U16 cv_flags_t;
+
struct xpvfm {
char * xpv_pv; /* pointer to malloced string */
STRLEN xpv_cur; /* length of xpv_pv as a C string */
@@ -248,7 +246,7 @@ struct xpvfm {
perl_cond * xcv_condp; /* signalled when owner leaves CV */
struct thread *xcv_owner; /* current owner thread */
#endif /* USE_THREADS */
- U8 xcv_flags;
+ cv_flags_t xcv_flags;
I32 xfm_lines;
};