source: trunk/src/gcc/libobjc/thr-objc.c@ 2442

Last change on this file since 2442 was 2, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 4.1 KB
Line 
1/* GNU Objective C Runtime Thread Interface.
2 Copyright (C) 1999 Free Software Foundation, Inc.
3
4This file is part of GNU CC.
5
6GNU CC is free software; you can redistribute it and/or modify it under the
7terms of the GNU General Public License as published by the Free Software
8Foundation; either version 2, or (at your option) any later version.
9
10GNU CC is distributed in the hope that it will be useful, but WITHOUT ANY
11WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13details.
14
15You should have received a copy of the GNU General Public License
16along with GNU CC; see the file COPYING. If not, write to
17the Free Software Foundation, 59 Temple Place - Suite 330,
18Boston, MA 02111-1307, USA. */
19
20/* As a special exception, if you link this library with files compiled with
21 GCC to produce an executable, this does not cause the resulting executable
22 to be covered by the GNU General Public License. This exception does not
23 however invalidate any other reasons why the executable file might be
24 covered by the GNU General Public License. */
25
26#define _LIBOBJC
27#include "tconfig.h"
28#include "defaults.h"
29#include <objc/thr.h>
30#include "runtime.h"
31#include <gthr.h>
32
33/* Backend initialization functions */
34
35/* Initialize the threads subsystem. */
36int
37__objc_init_thread_system(void)
38{
39 return __gthread_objc_init_thread_system ();
40}
41
42/* Close the threads subsystem. */
43int
44__objc_close_thread_system(void)