diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2017-03-02 14:50:10 -0500 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2017-03-02 16:34:11 -0500 |
commit | 2d1c5e26cb291193ac4d1f4a5179d8f6e1906229 (patch) | |
tree | 1486c2e0c6ffa3e5121f00096b27b52450f5a395 /objectivec/GPBUtilities_PackagePrivate.h | |
parent | a7e3b0ab016312f7427426d2cb88b0ab77210b79 (diff) | |
download | protobuf-2d1c5e26cb291193ac4d1f4a5179d8f6e1906229.tar.gz protobuf-2d1c5e26cb291193ac4d1f4a5179d8f6e1906229.tar.bz2 protobuf-2d1c5e26cb291193ac4d1f4a5179d8f6e1906229.zip |
Handing threading race resolving methods.
- Don't prune the extension registry as that can lead to failures when two
threads are racing.
- If adding the method fails, check and see if it already is bound to decide
the return result. Deals with threading races binding the methods.
Diffstat (limited to 'objectivec/GPBUtilities_PackagePrivate.h')
-rw-r--r-- | objectivec/GPBUtilities_PackagePrivate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/objectivec/GPBUtilities_PackagePrivate.h b/objectivec/GPBUtilities_PackagePrivate.h index 274351b7..16859d48 100644 --- a/objectivec/GPBUtilities_PackagePrivate.h +++ b/objectivec/GPBUtilities_PackagePrivate.h @@ -345,4 +345,6 @@ GPB_MESSAGE_SIGNATURE_ENTRY(int32_t, Enum) + (id)getClassValue; @end +BOOL GPBClassHasSel(Class aClass, SEL sel); + CF_EXTERN_C_END |