6 void lockOSThreadCallback(void);
7 inline static void lockOSThreadC(void)
9 lockOSThreadCallback();
11 int usleep(unsigned usec);
21 // Same as test3775 but run during init so that
22 // there are two levels of internal runtime lock
23 // (1 for init, 1 for cgo).
24 // This would have been broken by CL 11663043.
28 func test3775(t
*testing
.T
) {
29 // Used to panic because of the UnlockOSThread below.
33 //export lockOSThreadCallback
34 func lockOSThreadCallback() {
35 runtime
.LockOSThread()
36 runtime
.UnlockOSThread()