thread_pool.h revision 219089
112315Sasami/*-
212315Sasami * Copyright (c) 2010 Pawel Jakub Dawidek <pjd@FreeBSD.org>
312315Sasami * All rights reserved.
412315Sasami *
512315Sasami * Redistribution and use in source and binary forms, with or without
612315Sasami * modification, are permitted provided that the following conditions
712315Sasami * are met:
812315Sasami * 1. Redistributions of source code must retain the above copyright
912315Sasami *    notice, this list of conditions and the following disclaimer.
1012315Sasami * 2. Redistributions in binary form must reproduce the above copyright
1112315Sasami *    notice, this list of conditions and the following disclaimer in the
1212315Sasami *    documentation and/or other materials provided with the distribution.
1312315Sasami *
1412315Sasami * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
1512315Sasami * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1612315Sasami * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1712315Sasami * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
1812315Sasami * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1912315Sasami * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2012315Sasami * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2112315Sasami * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2212315Sasami * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2312315Sasami * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2412315Sasami * SUCH DAMAGE.
2512315Sasami *
2612315Sasami * $FreeBSD: head/cddl/compat/opensolaris/include/thread_pool.h 219089 2011-02-27 19:41:40Z pjd $
2712315Sasami */
2812315Sasami
2912315Sasami#ifndef _OPENSOLARIS_THREAD_POOL_H_
3012315Sasami#define _OPENSOLARIS_THREAD_POOL_H_
3112315Sasami
3212315Sasamitypedef int tpool_t;
3312315Sasami
3412315Sasami#define	tpool_create(a, b, c, d)	(0)
3512315Sasami#define	tpool_dispatch(pool, func, arg)	func(arg)
3612315Sasami#define	tpool_wait(pool)		do { } while (0)
3712315Sasami#define	tpool_destroy(pool)		do { } while (0)
3812315Sasami
3912315Sasami#endif	/* !_OPENSOLARIS_THREAD_POOL_H_ */
4012315Sasami