1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: libcpp-has-no-threads
16 // native_handle_type native_handle();
30 G() : alive_(1) {++n_alive;}
31 G(const G& g) : alive_(g.alive_) {++n_alive;}
32 ~G() {alive_ = 0; --n_alive;}
43 bool G::op_run = false;
50 pthread_t pid = t0.native_handle();