| 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 |
* Initialize g->stacklo. |
| 7 |
*/ |
| 8 |
extern void _cgo_set_stacklo(G *, uintptr *); |
| 9 |
|
| 10 |
/* |
| 11 |
* Call pthread_create, retrying on EAGAIN. |
| 12 |
*/ |
| 13 |
extern int _cgo_try_pthread_create(pthread_t*, const pthread_attr_t*, void* (*)(void*), void*); |
| 14 |
|
| 15 |
/* |
| 16 |
* Same as _cgo_try_pthread_create, but passing on the pthread_create function. |
| 17 |
* Only defined on OpenBSD. |
| 18 |
*/ |
| 19 |
extern int _cgo_openbsd_try_pthread_create(int (*)(pthread_t*, const pthread_attr_t*, void *(*pfn)(void*), void*), |
| 20 |
pthread_t*, const pthread_attr_t*, void* (*)(void*), void* arg); |