1 |
|
2002-12-02 Marius Vollmer <mvo@zagadka.ping.de> |
2 |
|
|
3 |
|
Reorganized thread package selection. A thread package now only |
4 |
|
implements a small set of pthread like functions and Guile |
5 |
|
implements the rest on top of that. Guile's implementation is |
6 |
|
what the "coop-pthreads" package has been previously. Support for |
7 |
|
"coop" threads has been removed until I get time to add it again. |
8 |
|
|
9 |
|
* Makefile.am (libguile_la_SOURCES): Removed iselect.c. |
10 |
|
(noinst_HEADERS): Removed coop-threads.c, coop-threads.h, coop.c, |
11 |
|
null-threads.c, coop-pthreads.c. |
12 |
|
(modinclude_HEADERS): Removed coop-defs.h, coop-pthreads.h. Added |
13 |
|
pthread-threads.h. |
14 |
|
|
15 |
|
* validate.h (SCM_VALIDATE_THREAD): Moved to threads.h. |
16 |
|
|
17 |
|
* threads.h: Do not include "libguile/coop-defs.h". Include |
18 |
|
"libguile/pthread-threads.h" for USE_COPT_THREADS. Removed |
19 |
|
(previously deprecated) C level thread API prototypes. They are |
20 |
|
now in the thread package specific headers, "null-threads.h" and |
21 |
|
"pthread-threads.h". |
22 |
|
(SCM_VALIDATE_THREAD, SCM_VALIDATE_MUTEX, SCM_VALIDATE_CONDVAR): |
23 |
|
New. |
24 |
|
(scm_threads_init): Removed. |
25 |
|
(SCM_CRITICAL_SECTION_START, SCM_CRITICAL_SECTION_END, |
26 |
|
SCM_THREAD_SWITCHING_CODE, scm_i_switch_counter, |
27 |
|
SCM_I_THREAD_SWITCH_COUNT): Define here. |
28 |
|
(scm_single_thread_p): Removed. |
29 |
|
(scm_call_with_new_thread): Take two args directly instead of list |
30 |
|
of two args. |
31 |
|
(scm_i_thread_data, scm_i_set_thread_data, SCM_THREAD_LOCAL_DATA, |
32 |
|
SCM_SET_THREAD_LOCAL_DATA): Define here. |
33 |
|
|
34 |
|
* threads.c: Merged with "coop-pthreads.c". |
35 |
|
|
36 |
|
* null-threads.h: Implement pthread-like API as a set of macros. |
37 |
|
|
38 |
|
* pthread-threads.h: New, implement pthread-like API by deferring |
39 |
|
to pthread itself. |
40 |
|
|
41 |
|
* init.c (scm_init_guile_1): Do not call scm_init_iselect, which |
42 |
|
has been lost in the reorganization. |
43 |
|
|
44 |
2002-12-01 Mikael Djurfeldt <mdj@linnaeus> |
2002-12-01 Mikael Djurfeldt <mdj@linnaeus> |
45 |
|
|
46 |
The following change makes it possible to move procedure |
The following change makes it possible to move procedure |