Statistics
| Branch: | Tag: | Revision:

root / gnuradio-core / src / lib / omnithread / ot_solaris.h @ 5d69a524

History | View | Annotate | Download (1.5 kB)

1
//                                Package : omnithread
2
// omnithread/solaris.h                Created : 7/94 tjr
3
//
4
//    Copyright (C) 1994,1995,1996, 1997 Olivetti & Oracle Research Laboratory
5
//
6
//    This file is part of the omnithread library
7
//
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.
12
//
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.
17
//
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., 59 Temple Place - Suite 330, Boston, MA  
21
//    02111-1307, USA
22
//
23
// OMNI thread implementation classes for solaris threads.
24
//
25
26
#ifndef __omnithread_solaris_h_
27
#define __omnithread_solaris_h_
28
29
#include <thread.h>
30
31
extern "C" void* omni_thread_wrapper(void* ptr);
32
33
#define OMNI_MUTEX_IMPLEMENTATION                        \
34
    mutex_t sol_mutex;
35
36
#define OMNI_CONDITION_IMPLEMENTATION                        \
37
    cond_t sol_cond;
38
39
#define OMNI_SEMAPHORE_IMPLEMENTATION                        \
40
    sema_t sol_sem;
41
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);
46
47
#endif