...

Text file src/runtime/cgo/libcgo_unix.h

Documentation: runtime/cgo

     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 */
     8extern void _cgo_set_stacklo(G *, uintptr *);
     9
    10/*
    11 * Call pthread_create, retrying on EAGAIN.
    12 */
    13extern 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 */
    19extern 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);

View as plain text