github.com/zebozhuang/go@v0.0.0-20200207033046-f8a98f6f5c5d/src/runtime/cgo/libcgo_unix.h (about) 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 /* 6 * Call pthread_create, retrying on EAGAIN. 7 */ 8 extern int _cgo_try_pthread_create(pthread_t*, const pthread_attr_t*, void* (*)(void*), void*); 9 10 /* 11 * Same as _cgo_try_pthread_create, but passing on the pthread_create function. 12 * Only defined on OpenBSD. 13 */ 14 extern int _cgo_openbsd_try_pthread_create(int (*)(pthread_t*, const pthread_attr_t*, void *(*pfn)(void*), void*), 15 pthread_t*, const pthread_attr_t*, void* (*)(void*), void* arg);