xref: /openbsd-src/lib/libc/thread/rthread.h (revision a5511fa9f431600dbd6dc2b46fc4e6b73e7d239c)
1*a5511fa9Sguenther /*	$OpenBSD: rthread.h,v 1.2 2017/09/05 02:40:54 guenther Exp $ */
27e321ac1Sguenther /*
37e321ac1Sguenther  * Copyright (c) 2004,2005 Ted Unangst <tedu@openbsd.org>
47e321ac1Sguenther  * All Rights Reserved.
57e321ac1Sguenther  *
67e321ac1Sguenther  * Permission to use, copy, modify, and distribute this software for any
77e321ac1Sguenther  * purpose with or without fee is hereby granted, provided that the above
87e321ac1Sguenther  * copyright notice and this permission notice appear in all copies.
97e321ac1Sguenther  *
107e321ac1Sguenther  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
117e321ac1Sguenther  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
127e321ac1Sguenther  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
137e321ac1Sguenther  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
147e321ac1Sguenther  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
157e321ac1Sguenther  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
167e321ac1Sguenther  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
177e321ac1Sguenther  */
187e321ac1Sguenther 
19*a5511fa9Sguenther #ifndef _RTHREAD_H_
20*a5511fa9Sguenther #define _RTHREAD_H_
217e321ac1Sguenther 
22*a5511fa9Sguenther #include "thread_private.h"
237e321ac1Sguenther 
247e321ac1Sguenther __BEGIN_HIDDEN_DECLS
257e321ac1Sguenther void	_rthread_tls_destructors(pthread_t);
267e321ac1Sguenther 
27*a5511fa9Sguenther extern int _rthread_debug_level;
28*a5511fa9Sguenther extern struct pthread _initial_thread;
297e321ac1Sguenther __END_HIDDEN_DECLS
307e321ac1Sguenther 
31*a5511fa9Sguenther PROTO_NORMAL(__threxit);
32*a5511fa9Sguenther PROTO_NORMAL(__thrsigdivert);
33*a5511fa9Sguenther PROTO_NORMAL(__thrsleep);
34*a5511fa9Sguenther PROTO_NORMAL(__thrwakeup);
357e321ac1Sguenther 
36*a5511fa9Sguenther PROTO_NORMAL(_spinlock);
37*a5511fa9Sguenther PROTO_STD_DEPRECATED(_spinlocktry);
38*a5511fa9Sguenther PROTO_NORMAL(_spinunlock);
39*a5511fa9Sguenther PROTO_NORMAL(_rthread_debug);
40*a5511fa9Sguenther 
41*a5511fa9Sguenther #endif /* _RTHREAD_H_ */
42