| 1 | /* GNU Objective C Runtime Thread Interface - OS/2 emx Implementation
|
|---|
| 2 | Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
|---|
| 3 | Contributed by Thomas Baier ([email protected])
|
|---|
| 4 |
|
|---|
| 5 | This file is part of GNU CC.
|
|---|
| 6 |
|
|---|
| 7 | GNU CC is free software; you can redistribute it and/or modify it under the
|
|---|
| 8 | terms of the GNU General Public License as published by the Free Software
|
|---|
| 9 | Foundation; either version 2, or (at your option) any later version.
|
|---|
| 10 |
|
|---|
| 11 | GNU CC is distributed in the hope that it will be useful, but WITHOUT ANY
|
|---|
| 12 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|---|
| 13 | FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|---|
| 14 | details.
|
|---|
| 15 |
|
|---|
| 16 | You should have received a copy of the GNU General Public License
|
|---|
| 17 | along with GNU CC; see the file COPYING. If not, write to
|
|---|
| 18 | the Free Software Foundation, 59 Temple Place - Suite 330,
|
|---|
| 19 | Boston, MA 02111-1307, USA. */
|
|---|
| 20 |
|
|---|
| 21 | /* As a special exception, if you link this library with files compiled with
|
|---|
| 22 | GCC to produce an executable, this does not cause the resulting executable
|
|---|
| 23 | to be covered by the GNU General Public License. This exception does not
|
|---|
| 24 | however invalidate any other reasons why the executable file might be
|
|---|
| 25 | covered by the GNU General Public License. */
|
|---|
| 26 |
|
|---|
| 27 | #include <objc/thr.h>
|
|---|
| 28 | #include "runtime.h"
|
|---|
| 29 |
|
|---|
| 30 | #define INCL_DOSSEMAPHORES
|
|---|
| 31 | #define INCL_DOSPROCESS
|
|---|
| 32 |
|
|---|
| 33 | /*
|
|---|
| 34 | * conflicts with objc.h: SEL, BOOL, id
|
|---|
| 35 | * solution: prefixing those with _OS2_ before including <os2.h>
|
|---|
| 36 | */
|
|---|
| 37 | #define SEL _OS2_SEL
|
|---|
| 38 | #define BOOL _OS2_BOOL
|
|---|
| 39 | #define id _OS2_id
|
|---|
| 40 | #include <os2.h>
|
|---|
| 41 | #undef id
|
|---|
| 42 | #undef SEL
|
|---|
| 43 | #undef BOOL
|
|---|
| 44 |
|
|---|
| 45 | #define __MT__
|
|---|
| 46 | #include <stdlib.h>
|
|---|
| 47 |
|
|---|
| 48 | /* Backend initialization functions */
|
|---|
| 49 |
|
|---|
| 50 | /* Initialize the threads subsystem. */
|
|---|
| 51 | int
|
|---|
| 52 | __objc_init_thread_system(void)
|
|---|
| 53 | {
|
|---|
| 54 | return 0;
|
|---|
| 55 | }
|
|---|
| 56 |
|
|---|
| 57 | /* Close the threads subsystem. */
|
|---|
| 58 | int
|
|---|
| 59 | __objc_close_thread_system(void)
|
|---|
| 60 | {
|
|---|
| 61 | return 0;
|
|---|
| 62 | }
|
|---|
| 63 |
|
|---|
| 64 | /* Backend thread functions */
|
|---|
|
|---|