| Index: third_party/protobuf/src/google/protobuf/stubs/once.cc
|
| diff --git a/third_party/protobuf/src/google/protobuf/stubs/once.cc b/third_party/protobuf/src/google/protobuf/stubs/once.cc
|
| index 1e24b85526705c0e1b31b1fa6109c66493bc18d6..2363622e330e344bcf9983497a6f7da65947ebe9 100644
|
| --- a/third_party/protobuf/src/google/protobuf/stubs/once.cc
|
| +++ b/third_party/protobuf/src/google/protobuf/stubs/once.cc
|
| @@ -93,6 +93,13 @@ void GoogleOnceInitImpl(ProtobufOnceType* once, Closure* closure) {
|
| }
|
| }
|
|
|
| +void GoogleOnceInit(ProtobufOnceType* once, void (*init_func)()) {
|
| + if (internal::Acquire_Load(once) != ONCE_STATE_DONE) {
|
| + internal::FunctionClosure0 func(init_func, false);
|
| + GoogleOnceInitImpl(once, &func);
|
| + }
|
| +}
|
| +
|
| } // namespace protobuf
|
| } // namespace google
|
|
|
|
|