2 ms·
I think this assumes the first thread will actually succeed. Don't forget complications if you need failure/exception handling...
by dataflow 3y ago
I think this assumes the first thread will actually succeed. Don't forget complications if you need failure/exception handling...
- jeffbee 3y agoAn implementation of call_once that accommodates callbacks that throw: https://github.com/abseil/abseil-cpp/blob/master/absl/base/call_once.h https://github.com/abseil/abseil-cpp/blob/master/absl/base/c...