summaryrefslogtreecommitdiff
path: root/src/upb_string.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2010-06-03 12:07:07 -0700
committerJoshua Haberman <joshua@reverberate.org>2010-06-03 12:07:07 -0700
commita484ea0275f4d451d881b4edb1e1e4ae93be42a7 (patch)
tree76f152fc5091fb3fa012633f416828e33279ca9f /src/upb_string.h
parent0034e6fdb82b7e0623983f44ba4fc1c98393d032 (diff)
WIP: intrusive changes to upb_decoder.
Diffstat (limited to 'src/upb_string.h')
-rw-r--r--src/upb_string.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/upb_string.h b/src/upb_string.h
index 0516377..c0d14d5 100644
--- a/src/upb_string.h
+++ b/src/upb_string.h
@@ -64,9 +64,10 @@ INLINE upb_strlen_t upb_string_len(upb_string *str) { return str->len; }
// Use to read the bytes of the string. The caller *must* call
// upb_string_endread() after the data has been read. The window between
-// upb_string_getrobuf() and upb_string_endread() should be kept as short
-// as possible. No other functions may be called on the string during this
-// window except upb_string_len().
+// upb_string_getrobuf() and upb_string_endread() should be kept as short as
+// possible, because any pending upb_string_detach() may be blocked until
+// upb_string_endread is called(). No other functions may be called on the
+// string during this window except upb_string_len().
INLINE const char *upb_string_getrobuf(upb_string *str) { return str->ptr; }
INLINE void upb_string_endread(upb_string *str);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback