aboutsummaryrefslogtreecommitdiffhomepage
path: root/python/google/protobuf/reflection.py
diff options
context:
space:
mode:
authorGravatar Thomas Van Lenten <thomasvl@google.com>2017-03-29 10:46:04 -0400
committerGravatar Thomas Van Lenten <thomasvl@google.com>2017-03-29 13:03:33 -0400
commit130c166697cc7df082197a10936dd9554c3e4083 (patch)
treea8e22004c8673f935825a40606a4091e9293175a /python/google/protobuf/reflection.py
parentba3fa41ba86cd87f1947b9e66e450b9dc39e85a6 (diff)
Remove the use of dispatch_once that is heap backed.
Apple recently updated the docs on dispatch_once to point out that the storage for the dispatch_once_t must be static or global, but not something that was ever used before as the implementation doesn't use a memory barrier. So we drop the use and create the semaphore when needed and use an atomic swap deal with any threading races.
Diffstat (limited to 'python/google/protobuf/reflection.py')
0 files changed, 0 insertions, 0 deletions