diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2016-03-21 11:11:14 -0400 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2016-03-21 11:11:14 -0400 |
commit | bd41a39f693d8307d407e42b634b315e075b6c8f (patch) | |
tree | 018b7755a546f18ee54e3fc48d6f8c69fdbcc67d /examples/add_person_test.go | |
parent | 5e933847cc9e7826f1a9ee8b3dc1df4960b1ea5d (diff) | |
download | protobuf-bd41a39f693d8307d407e42b634b315e075b6c8f.tar.gz protobuf-bd41a39f693d8307d407e42b634b315e075b6c8f.tar.bz2 protobuf-bd41a39f693d8307d407e42b634b315e075b6c8f.zip |
Only create the readonlySemaphore on demand.
This will lower the amount of dispatch_semaphores created per Message when the
full object tree isn't walked in a way that would require them to be created.
Uses a dispatch_once_t for one time init of the dispatch_semaphore.
Diffstat (limited to 'examples/add_person_test.go')
0 files changed, 0 insertions, 0 deletions