aboutsummaryrefslogtreecommitdiff
path: root/ruby/Rakefile
diff options
context:
space:
mode:
authorThomas Van Lenten <thomasvl@google.com>2017-03-29 10:46:04 -0400
committerBo Yang <paulyang1211@gmail.com>2017-04-04 10:17:52 -0700
commit7d758c00bc55a8997d29dedbc50de7eaf4d71280 (patch)
tree9eb231a14630464409ee2a40b96d7fb70358c6ca /ruby/Rakefile
parent4f44a0f4bb55997522e5e9574f143d5e63ec1936 (diff)
downloadprotobuf-7d758c00bc55a8997d29dedbc50de7eaf4d71280.tar.gz
protobuf-7d758c00bc55a8997d29dedbc50de7eaf4d71280.tar.bz2
protobuf-7d758c00bc55a8997d29dedbc50de7eaf4d71280.zip
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 'ruby/Rakefile')
0 files changed, 0 insertions, 0 deletions