diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-22 16:01:46 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-22 16:01:46 -0200 |
commit | dbc5451bea323e8908fcedff2a89bcf73ed5cb57 (patch) | |
tree | 05da7486e49d5f0e2670d275822629bdcd8aa09c /lstate.h | |
parent | 2d2d45976ce41de04e9007c8a78a8ba244d1fdc5 (diff) | |
download | lua-dbc5451bea323e8908fcedff2a89bcf73ed5cb57.tar.gz lua-dbc5451bea323e8908fcedff2a89bcf73ed5cb57.tar.bz2 lua-dbc5451bea323e8908fcedff2a89bcf73ed5cb57.zip |
comments
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 1.105 2002/11/21 15:46:44 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 1.106 2002/11/22 17:16:52 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -15,12 +15,12 @@ | |||
15 | 15 | ||
16 | 16 | ||
17 | /* | 17 | /* |
18 | ** macros for thread syncronization inside Lua core machine: | 18 | ** macros for thread synchronization inside Lua core machine: |
19 | ** all accesses to the global state and to global objects are syncronized. | 19 | ** all accesses to the global state and to global objects are synchronized. |
20 | ** Because threads can read the stack of other threads | 20 | ** Because threads can read the stack of other threads |
21 | ** (when running garbage collection), | 21 | ** (when running garbage collection), |
22 | ** a thread must also syncronize any write-access to its own stack. | 22 | ** a thread must also synchronize any write-access to its own stack. |
23 | ** Unsyncronized accesses are allowed only when reading its own stack, | 23 | ** Unsynchronized accesses are allowed only when reading its own stack, |
24 | ** or when reading immutable fields from global objects | 24 | ** or when reading immutable fields from global objects |
25 | ** (such as string values and udata values). | 25 | ** (such as string values and udata values). |
26 | */ | 26 | */ |