diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2011-09-04 23:05:30 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2011-09-04 23:05:30 -0700 |
commit | 20548539644cc4729b7e18ba2eefbf1956752abf (patch) | |
tree | 31d109a39075171f6217bd1cfdba03696d0cf610 /upb | |
parent | f226554fa5b64c2a152f39e52fd4a56acc06f527 (diff) |
Header tweaking.
Diffstat (limited to 'upb')
-rw-r--r-- | upb/def.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -20,14 +20,14 @@ * not be used for any purpose except to set its properties (it can't be * used to parse anything, create any messages in memory, etc). * - * 2. IMMUTABLE: after being added to a symtab (which links the defs together) - * the defs become thread-safe and immutable. Programs may only access defs - * through a CONST POINTER during this stage -- upb_symtab will help you out - * with this requirement by only vending const pointers, but you need to - * make sure not to use any non-const pointers you still have sitting - * around. In practice this means that you may not call any setters on the - * defs (or functions that themselves call the setters). If you want to - * modify an existing immutable def, copy it with upb_*_dup(), modify the + * 2. FINALIZED: after being added to a symtab (which links the defs together) + * the defs become finalized (thread-safe and immutable). Programs may only + * access defs through a CONST POINTER during this stage -- upb_symtab will + * help you out with this requirement by only vending const pointers, but + * you need to make sure not to use any non-const pointers you still have + * sitting around. In practice this means that you may not call any setters + * on the defs (or functions that themselves call the setters). If you want + * to modify an existing immutable def, copy it with upb_*_dup(), modify the * copy, and add the modified def to the symtab (replacing the existing * def). * |