diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1996-03-05 09:10:10 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1996-03-05 09:10:10 -0500 |
commit | 54d643f6f26b192c82c2aac16122417e3e9281c3 (patch) | |
tree | 0ff2db4638bf36c7f8e2c5523bbe83092991a283 /gcc | |
parent | 691466c0b514a5a20c0ae5ac9b9f082ecf795b28 (diff) | |
download | gcc-54d643f6f26b192c82c2aac16122417e3e9281c3.zip gcc-54d643f6f26b192c82c2aac16122417e3e9281c3.tar.gz gcc-54d643f6f26b192c82c2aac16122417e3e9281c3.tar.bz2 |
Include objc/thread.h.
From-SVN: r11444
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/objc/objc-api.h | 3 | ||||
-rw-r--r-- | gcc/objc/runtime.h | 16 |
2 files changed, 16 insertions, 3 deletions
diff --git a/gcc/objc/objc-api.h b/gcc/objc/objc-api.h index c801033..851cf2b 100644 --- a/gcc/objc/objc-api.h +++ b/gcc/objc/objc-api.h @@ -1,5 +1,5 @@ /* GNU Objective-C Runtime API. - Copyright (C) 1993, 1995 Free Software Foundation, Inc. + Copyright (C) 1993, 1995, 1996 Free Software Foundation, Inc. This file is part of GNU CC. @@ -29,6 +29,7 @@ Boston, MA 02111-1307, USA. */ #include "objc/objc.h" #include "objc/hash.h" +#include "objc/thread.h" #include <stdio.h> /* For functions which return Method_t */ diff --git a/gcc/objc/runtime.h b/gcc/objc/runtime.h index 0f4510f..23c292f 100644 --- a/gcc/objc/runtime.h +++ b/gcc/objc/runtime.h @@ -1,5 +1,5 @@ /* GNU Objective C Runtime internal declarations - Copyright (C) 1993, 1995 Free Software Foundation, Inc. + Copyright (C) 1993, 1995, 1996 Free Software Foundation, Inc. Contributed by Kresten Krab Thorup This file is part of GNU CC. @@ -37,8 +37,10 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "objc/objc.h" /* core data types */ #include "objc/objc-api.h" /* runtime api functions */ +#include "objc/thread.h" /* thread and mutex support */ + #include "objc/hash.h" /* hash structures */ -#include "objc/list.h" /* linear lists */ +#include "objc/objc-list.h" /* linear lists */ extern void __objc_add_class_to_hash(Class); /* (objc-class.c) */ extern void __objc_init_selector_tables(); /* (objc-sel.c) */ @@ -48,6 +50,10 @@ extern void __objc_install_premature_dtable(Class); /* (objc-dispatch.c) */ extern void __objc_resolve_class_links(); /* (objc-class.c) */ extern void __objc_register_selectors_from_class(Class); /* (objc-sel.c) */ extern void __objc_update_dispatch_table_for_class (Class);/* (objc-msg.c) */ + +extern int __objc_init_thread_system(void); /* thread.c */ +extern int __objc_fini_thread_system(void); /* thread.c */ + extern void class_add_method_list(Class, MethodList_t); extern void objc_error(id object, const char* fmt, va_list); @@ -59,6 +65,12 @@ extern BOOL __objc_class_links_resolved; /* Number of selectors stored in each of the selector tables */ extern int __objc_selector_max_index; +/* Mutex locking __objc_selector_max_index and its arrays. */ +extern _objc_mutex_t __objc_runtime_mutex; + +/* Number of threads which are alive. */ +extern int __objc_runtime_threads_alive; + #ifdef DEBUG #define DEBUG_PRINTF(format, args...) printf (format, ## args) #else |