diff options
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 | */ |
