* src/threads/threadlist.c: New file.
authorChristian Thalinger <twisti@complang.tuwien.ac.at>
Wed, 5 Mar 2008 14:17:34 +0000 (15:17 +0100)
committerChristian Thalinger <twisti@complang.tuwien.ac.at>
Wed, 5 Mar 2008 14:17:34 +0000 (15:17 +0100)
commitb63e8aecc697c9c0f904b811488ee9835f597e96
tree6d5e67b6fd1ffc9c69624726ff7132ec5ba21729
parent86cd0390c833913095dd0cf388cfd3834702b482
* src/threads/threadlist.c: New file.
* src/threads/threadlist.h: Likewise.

* src/threads/Makefile.am (libthreads_la_SOURCES): Added
threadlist.[ch].

* src/threads/lock-common.h: Changed copyright.

* src/threads/native/lock.c (threads/threadlist.h): Added.
(threads_lookup_thread_id): Use threadlist_* functions.

* src/threads/native/threads.c (threads/threadlist.h): Added.
(threads_cast_sendsignals): Use threadlist_* functions.
(threads_stopworld): Likewise.
(threads_startworld): Likewise.
(threads_init): Likewise.
(threads_attach_current_thread): Likewise.
(threads_join_all_threads): Likewise.

* src/threads/threads-common.c (threads/threadlist.h): Added.
(list_threads, list_free_threads, list_free_thread_index): Removed.
(thread_index_t): Removed.
(threads_preinit): Don't initialize the thread lists, moved
lock_init and critical_init calls into vm_create.
(threads_list_first, threads_list_next): Removed.
(threads_list_get_non_daemons): Likewise.
(threads_thread_new, threads_thread_free): Use threadlist_* functions.

* src/threads/threads-common.h (threads_list_first): Removed.
(threads_list_next): Likewise.
(threads_list_get_non_daemons): Likewise.

* src/vm/vm.c (threads/lock-common.h): Added.
(threads/threadlist.h): Added.
(vm_create) [ENABLE_THREADS]: Call threadlist_init, lock_init and
critical_init.
src/threads/Makefile.am
src/threads/lock-common.h
src/threads/native/lock.c
src/threads/native/threads.c
src/threads/threadlist.c [new file with mode: 0644]
src/threads/threadlist.h [new file with mode: 0644]
src/threads/threads-common.c
src/threads/threads-common.h
src/vm/vm.c