Text file src/runtime/cgo/libcgo_unix.h
1 // Copyright 2016 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 #include <pthread.h> 6 7 /* 8 * Call pthread_create, retrying on EAGAIN. 9 */ 10 extern int _cgo_try_pthread_create(pthread_t*, const pthread_attr_t*, void* (*)(void*), void*); 11 12 extern void* threadentry(void*); 13