pthread_np.h revision 105727
134689Sbde/*
250476Speter * Copyright (c) 1996-98 John Birrell <jb@cimlogic.com.au>.
31573Srgrimes * All rights reserved.
434689Sbde *
534689Sbde * Redistribution and use in source and binary forms, with or without
634689Sbde * modification, are permitted provided that the following conditions
738752Sbde * are met:
8117675Smarkm * 1. Redistributions of source code must retain the above copyright
9117675Smarkm *    notice, this list of conditions and the following disclaimer.
1081133Stmm * 2. Redistributions in binary form must reproduce the above copyright
1159897Sjoe *    notice, this list of conditions and the following disclaimer in the
1279471Smarkm *    documentation and/or other materials provided with the distribution.
1350731Speter * 3. All advertising materials mentioning features or use of this software
14122568Sharti *    must display the following acknowledgement:
1559353Skris *	This product includes software developed by John Birrell.
1641257Sjdp * 4. Neither the name of the author nor the names of any co-contributors
1782355Smarkm *    may be used to endorse or promote products derived from this software
1894690Sdes *    without specific prior written permission.
1941257Sjdp *
2056081Sbde * THIS SOFTWARE IS PROVIDED BY JOHN BIRRELL AND CONTRIBUTORS ``AS IS'' AND
2194690Sdes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2234689Sbde * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2334689Sbde * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2434689Sbde * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25122568Sharti * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26126799Sphk * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27135549Sdes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28135771Strhodes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29129225Scognet * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30141403Sphk * SUCH DAMAGE.
31141403Sphk *
32135549Sdes * $FreeBSD: head/include/pthread_np.h 105727 2002-10-22 17:11:49Z fjoe $
33137554Smarkm */
34121340Sharti#ifndef _PTHREAD_NP_H_
35132335Smarcel#define _PTHREAD_NP_H_
36137682Stjr
3734689Sbde/*
38103436Speter * Non-POSIX type definitions:
39103436Speter */
4072309Sobrientypedef void	(*pthread_switch_routine_t)(pthread_t, pthread_t);
4134689Sbde
4272309Sobrien/*
4372309Sobrien * Non-POSIX thread function prototype definitions:
441573Srgrimes */
451573Srgrimes__BEGIN_DECLS
46139105Sruint pthread_attr_setcreatesuspend_np(pthread_attr_t *);
47119508Sphkint pthread_main_np(void);
48121340Shartiint pthread_multi_np(void);
49119508Sphkint pthread_mutexattr_getkind_np(pthread_mutexattr_t);
50119508Sphkint pthread_mutexattr_setkind_np(pthread_mutexattr_t *, int);
5153927Spetervoid pthread_resume_all_np(void);
52135549Sdesint pthread_resume_np(pthread_t);
5353922Spetervoid pthread_set_name_np(pthread_t, const char *);
5453922Speterint pthread_single_np(void);
55125123Semaxvoid pthread_suspend_all_np(void);
56125123Semaxint pthread_suspend_np(pthread_t);
57125123Semaxint pthread_switch_add_np(pthread_switch_routine_t);
58125123Semaxint pthread_switch_delete_np(pthread_switch_routine_t);
59131768Semax__END_DECLS
60131768Semax
6152228Sbp#endif
6287960Ssheldonh