HomeSort by relevance Sort by last modified time
    Searched defs:dispatch_once (Results 1 - 2 of 2) sorted by null

  /external/clang/test/Analysis/
unix-fns.c 39 void dispatch_once(dispatch_once_t *predicate, dispatch_block_t block);
62 do { if (__builtin_expect(*(&pred), ~0l) != ~0l) dispatch_once((&pred), (^() {})); } while (0); // expected-warning{{Call to 'dispatch_once' uses the local variable 'pred' for the predicate value}}
66 do { if (__builtin_expect(*(&pred), ~0l) != ~0l) dispatch_once((&pred), (^() {})); } while (0); // no-warning
172 // Test dispatch_once being a macro that wraps a call to _dispatch_once, which in turn
173 // calls the real dispatch_once.
177 dispatch_once(predicate, block);
180 #define dispatch_once _dispatch_once macro
184 dispatch_once(&pred, ^(){}); // expected-warning {{Call to 'dispatch_once' uses the local variable 'pred' for the predicate value}
    [all...]
  /external/compiler-rt/lib/tsan/rtl/
tsan_libdispatch_mac.cc 223 // GCD's dispatch_once implementation has a fast path that contains a racy read
226 // code following the call to dispatch_once. We could deal with this in
232 // are the loads on the fast path. Loads don't race. Secondly, dispatch_once is
235 #undef dispatch_once macro
236 TSAN_INTERCEPTOR(void, dispatch_once, dispatch_once_t *predicate,
238 SCOPED_INTERCEPTOR_RAW(dispatch_once, predicate, block);
262 WRAP(dispatch_once)(predicate, ^(void) {

Completed in 807 milliseconds