1 // Package : omnithread
2 // omnithread/solaris.h Created : 7/94 tjr
4 // Copyright (C) 1994,1995,1996, 1997 Olivetti & Oracle Research Laboratory
6 // This file is part of the omnithread library
8 // The omnithread library is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU Library General Public
10 // License as published by the Free Software Foundation; either
11 // version 2 of the License, or (at your option) any later version.
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Library General Public License for more details.
18 // You should have received a copy of the GNU Library General Public
19 // License along with this library; if not, write to the Free
20 // Software Foundation, Inc., 51 Franklin Street, Boston, MA
23 // OMNI thread implementation classes for solaris threads.
26 #ifndef __omnithread_solaris_h_
27 #define __omnithread_solaris_h_
31 extern "C" void* omni_thread_wrapper(void* ptr);
33 #define OMNI_MUTEX_IMPLEMENTATION \
36 #define OMNI_CONDITION_IMPLEMENTATION \
39 #define OMNI_SEMAPHORE_IMPLEMENTATION \
42 #define OMNI_THREAD_IMPLEMENTATION \
43 thread_t sol_thread; \
44 static int sol_priority(priority_t); \
45 friend void* omni_thread_wrapper(void* ptr);