pthread_np.h revision 44965
10Sduke/*
210762Sjprovino * Copyright (c) 1996-98 John Birrell <jb@cimlogic.com.au>.
30Sduke * All rights reserved.
40Sduke *
50Sduke * Redistribution and use in source and binary forms, with or without
60Sduke * modification, are permitted provided that the following conditions
70Sduke * are met:
80Sduke * 1. Redistributions of source code must retain the above copyright
90Sduke *    notice, this list of conditions and the following disclaimer.
100Sduke * 2. Redistributions in binary form must reproduce the above copyright
110Sduke *    notice, this list of conditions and the following disclaimer in the
120Sduke *    documentation and/or other materials provided with the distribution.
130Sduke * 3. All advertising materials mentioning features or use of this software
140Sduke *    must display the following acknowledgement:
150Sduke *	This product includes software developed by John Birrell.
160Sduke * 4. Neither the name of the author nor the names of any co-contributors
170Sduke *    may be used to endorse or promote products derived from this software
180Sduke *    without specific prior written permission.
191472Strims *
201472Strims * THIS SOFTWARE IS PROVIDED BY JOHN BIRRELL AND CONTRIBUTORS ``AS IS'' AND
211472Strims * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
220Sduke * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
230Sduke * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
240Sduke * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
251879Sstefank * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2610762Sjprovino * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
271879Sstefank * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
281879Sstefank * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
291879Sstefank * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
301879Sstefank * SUCH DAMAGE.
316219Smorris *
321879Sstefank */
331879Sstefank#ifndef _PTHREAD_NP_H_
341879Sstefank#define _PTHREAD_NP_H_
351879Sstefank
361879Sstefank/*
371879Sstefank * Non-POSIX type definitions:
381879Sstefank */
391879Sstefanktypedef void	(*pthread_switch_routine_t) __P((pthread_t, pthread_t));
401879Sstefank
410Sduke/*
420Sduke * Non-POSIX thread function prototype definitions:
430Sduke */
440Sduke__BEGIN_DECLS
450Sdukeint pthread_attr_setcreatesuspend_np __P((pthread_attr_t *));
460Sdukeint pthread_multi_np __P((void));
470Sdukeint pthread_resume_np __P((pthread_t));
480Sdukeint pthread_single_np __P((void));
490Sdukeint pthread_suspend_np __P((pthread_t));
500Sdukeint pthread_mutexattr_getkind_np __P((pthread_mutexattr_t attr));
510Sdukeint pthread_mutexattr_setkind_np __P((pthread_mutexattr_t *attr, int kind));
520Sdukevoid pthread_set_name_np __P((pthread_t, char *));
530Sdukeint pthread_switch_add_np (pthread_switch_routine_t routine);
546546Sthartmannint pthread_switch_delete_np (pthread_switch_routine_t routine);
550Sduke__END_DECLS
560Sduke
570Sduke#endif
580Sduke