Go to the source code of this file.
◆ USE_PTHREAD_ONCE
◆ anonymous enum
◆ InitAsyncWorkManager()
static void InitAsyncWorkManager |
( |
void | | ) |
|
|
static |
Definition at line 105 of file OOAsyncWorkManager.m.
106{
107 NSCAssert(
sSingleton ==
nil,
@"Async Work Manager singleton not nil in one-time init");
108
109#if !OO_HAVE_NSOPERATION
111 {
113 }
115 {
116 sSingleton = [[OOManualDispatchAsyncWorkManager alloc] init];
117 }
118#else
120#endif
121
123 {
124 OOLog(
@"asyncWorkManager.setUpDispatcher.failed",
@"%@",
@"***** FATAL ERROR: could not set up async work manager!");
125 exit(EXIT_FAILURE);
126 }
127
128 OOLog(
@"asyncWorkManager.dispatchMethod",
@"Selected async work manager: %@", [
sSingleton class]);
129}
static OOAsyncWorkManager * sSingleton
#define OOLog(class, format,...)
◆ sSingleton