summaryrefslogtreecommitdiff
path: root/sharedsv.h
diff options
context:
space:
mode:
authorArtur Bergman <sky@nanisky.com>2001-10-24 11:06:35 +0000
committerArtur Bergman <sky@nanisky.com>2001-10-24 11:06:35 +0000
commit55fc11ad574fdface3f93a0c10965511fdcfd69b (patch)
treeb64a952ebff3af0e9e9c0f52f78534a381015899 /sharedsv.h
parent8eb28a70b2ec19f2782a68fd1ccf1a9a24131140 (diff)
downloadperl-55fc11ad574fdface3f93a0c10965511fdcfd69b.tar.gz
We only need to fetch the SV from the backend if the index
is not the same as mg_private. In theory this could be a problem if there are an exact multiple of U16 changes of a shared variable between two access in a given thread, we choose to avoid theory for now. p4raw-id: //depot/perl@12616
Diffstat (limited to 'sharedsv.h')
-rw-r--r--sharedsv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sharedsv.h b/sharedsv.h
index 5a55be632f..f82804dba4 100644
--- a/sharedsv.h
+++ b/sharedsv.h
@@ -7,6 +7,7 @@ typedef struct {
perl_cond user_cond; /* For user-level conditions */
IV locks; /* Number of locks held */
PerlInterpreter *owner; /* Who owns the lock? */
+ U16 index; /* Update index */
} shared_sv;
#define SHAREDSvGET(a) (a->sv)