ChangeLog-threads 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. Some of the thread support code (threads.c, coop.c, etc.) used to live
  2. in a separate directory called threads. In April 1997, that dir was
  3. merged with libguile; this is the ChangeLog from the old directory.
  4. Please put new entries in the ordinary ChangeLog.
  5. Mon Feb 24 21:48:12 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  6. * configure.in: Added AM_MAINTAINER_MODE
  7. Fri Feb 21 23:52:16 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  8. * Makefile.am (modincludedir, modinclude_HEADERS): Added until
  9. libthreads is integrated into libguile, otherwise people who try
  10. to use Guile from an independent application will have trouble
  11. finding libguile/../threads/threads.h.
  12. Sat Jan 11 18:35:39 1997 Marius Vollmer <mvo@zagadka.ping.de>
  13. * Makefile.am (noinst_HEADERS): Added coop-defs.h so that it gets
  14. distributed.
  15. Tue Jan 7 14:05:35 1997 Mikael Djurfeldt <mdj@kenneth>
  16. * coop-defs.h: Added includes which define `time_t'.
  17. Sun Jan 5 15:07:07 1997 Jim Blandy <jimb@floss.cyclic.com>
  18. * Makefile.am (EXTRA_DIST): Add .cvsignore.
  19. * Makefile.am (libthreads_a_SOURCES): Add threads.h. I think this
  20. is right...
  21. (noinst_HEADERS): Remove it from here.
  22. * Makefile.in: Rebuilt.
  23. Thu Jan 2 15:15:16 1997 Mikael Djurfeldt <mdj@kenneth>
  24. These changes separates threads declarations which everybody wants
  25. to see (coop-defs.h) from declarations internal to the threads
  26. module (coop-threads.h), thereby solving the "-I ../qt" problem.
  27. (This is not the final solution. All files in the threads
  28. directory should be moved into libguile since 1. it is too tightly
  29. interconnected with libguile internals to be a separate module and
  30. 2. it is actually quite small. When doing this, things can be
  31. organized in a more natural way.)
  32. * coop-defs.h: New file.
  33. * coop-threads.c: Added #include "coop-threads.h"
  34. * coop-threads.h: Moved coop_t struct and threads macros to
  35. coop-defs.h. Added #include "coop-defs.h".
  36. * threads.h: Changed #include "coop-threads.h" --> #include
  37. "coop-defs.h".
  38. Mon Dec 9 17:20:39 1996 Tom Tromey <tromey@cygnus.com>
  39. * Makefile.am (.c.x): Use guile-snarf.
  40. (INCLUDES): Search for headers in libguile source and build
  41. directories.
  42. Mon Dec 2 20:37:07 1996 Tom Tromey <tromey@cygnus.com>
  43. * PLUGIN/greet: Removed.
  44. * Makefile.am, aclocal.m4: New files.
  45. * configure.in: Updated for Automake.
  46. Sun Nov 10 18:21:00 1996 Jim Blandy <jimb@totoro.cyclic.com>
  47. * Makefile.in (uninstall_threads): rmdir -f isn't portable;
  48. use rm -rf instead.
  49. Sun Nov 10 17:41:21 1996 Jim Blandy <jimb@floss.cyclic.com>
  50. * Makefile.in, configure.in: When threads are disabled,
  51. short-circuit the `install' and `uninstall' Makefile targets too.
  52. Sat Nov 2 21:29:33 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  53. * threads.c: Added #include "dynwind.h".
  54. Added scheme level procedure `single-active-thread?'.
  55. * mit-pthreads.c, mit-pthreads.h: Port completed but untested.
  56. * coop-threads.h: Increased SCM_THREAD_SWITCH_COUNT from 10 to 50
  57. to decrease overhead at the cost of granularity.
  58. * coop.c, coop-threads.h: Made coop_global_runq and
  59. coop_global_sleepq visible globally.
  60. * coop-threads.c (scm_single_thread_p): New function.
  61. Thu Oct 24 22:37:03 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  62. * threads.c: #include "dynwind.h"
  63. * coop-threads.c (scm_threads_mark_stacks): Removed unused
  64. variable.
  65. * coop.c (coop_qput, coop_all_qput, coop_all_qremove): Removed
  66. unused variable.
  67. Wed Oct 9 19:46:00 1996 Jim Blandy <jimb@floss.cyclic.com>
  68. * Makefile.in: Doc fixes.
  69. * Makefile.in (ancillary): Corrected spelling from `ancillery'.
  70. * Makefile.in (source, h_files, ancillary): Updated to describe
  71. the actual contents of the tree.
  72. (PLUGIN_distfiles): New variable.
  73. (dist-dir): New target, to create a sub-tree of a distribution.
  74. * Makefile.in (all): Depend on @target_all@ instead of
  75. libthreads.a, so the configure script can make this makefile do
  76. nothing when threads aren't in use.
  77. * configure.in: If we using cooperative threads, then let
  78. @target_all@ expand to libthreads.a; otherwise, let it expand to
  79. the empty string.
  80. Sat Oct 5 18:40:09 1996 Mikael Djurfeldt <mdj@kenneth>
  81. * threads.c, threads.h (scm_init_threads, scm_threads_init): Added
  82. stack base pointer argument so that main thread can be initialized
  83. properly.
  84. * configure.in: Added lines to set default -g flag in CFLAGS and
  85. LDFLAGS.
  86. * coop-threads.c: Added argument checking to scheme level
  87. procedures. Change the way threads are launched.
  88. * threads.h: Added #include "procs.h"
  89. Added macros SCM_THREADP, SCM_MUTEXP and SCM_CONDVARP.
  90. Wed Oct 2 14:36:44 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
  91. * coop-threads.c (scm_threads_free_thread, scm_threads_free_mutex,
  92. scm_threads_free_condvar): free --> scm_must_free
  93. * coop-threads.h: Added macros SCM_THREAD_LOCAL_DATA and
  94. SCM_SET_THREAD_LOCAL_DATA.
  95. Tue Oct 1 00:05:54 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
  96. * coop-threads.c (scm_threads_mark_stacks): scm_save_regs_gc_mark
  97. is already in root state (should it really?). Don't allocate it
  98. locally; Remove extra argument to scm_mark_locations.
  99. * coop-threads.h: Changed #include <qt.h> --> #include "../qt/qt.h"
  100. (SCM_THREAD_INITIALIZE_STORAGE, SCM_DEFER_INTS, SCM_ALLOW_INTS,
  101. SCM_REDEFER_INTS, SCM_REALLOW_INTS, scm_coop_create_info_type):
  102. Removed; Declaration of scm_coop_create_info removed. Added
  103. definition of SCM_THREADS_SWITCHING_CODE.
  104. * coop-threads.c: Removed gscm_type objects. Renamed all
  105. gscm_threads_<type>_die --> scm_threads_free_<type> and let them
  106. return freed size as smob freeing code normally does. Removed
  107. thread creation mutex and thread creation info structure.
  108. (gscm_threads_thread_equal, gscm_pthread_delete_info,
  109. scm_threads_init): Removed.
  110. (scm_threads_init_coop_threads): Removed allocation of thread
  111. local data. Removed initialization of thread creation mutex.
  112. Renamed scm_threads_init_coop_threads --> scm_threads_init.
  113. (scm_threads_mark_stacks): Mark root object instead of local
  114. protects.
  115. (launch_thread): thunk and handler is passed as a scheme list.
  116. Call scm_with_new_root instead of scm_with_dynamic_root. Let
  117. scm_with_new_root care about thread local variables. Removed
  118. unlocking of creation mutex.
  119. (scm_call_with_new_thread): Remove initialization of create info
  120. structure and locking of creation mutex. Do smob allocation.
  121. (scm_join_thread): Extract thread data in a new way.
  122. (scm_make_mutex): Do smob allocation.
  123. (scm_lock_mutex, scm_unlock_mutex): Extract thread data in a new
  124. way.
  125. (scm_make_condition_variable): Do smob allocation.
  126. (scm_wait_condition_variable, scm_signal_condition_variable):
  127. Extract thread data in a new way.
  128. * threads.c: Don't use files "no-threads.[hc]". Removed old code
  129. for creation of thread, mutex and condition-variable objects.
  130. Added smobs instead. Use scm_threads_free_<type> for freeing.
  131. (scm_init_threads): Moved scm_add_feature ("threads") to
  132. feature.c.
  133. * threads.h: Added declaration of scm_init_threads. Added macro
  134. selectors SCM_THREAD_DATA, SCM_MUTEX_DATA and SCM_CONDVAR_DATA.
  135. * coop-threads.c, coop-threads.h, coop.c, fsu-pthreads.h,
  136. mit-pthreads.c, mit-pthreads.h, threads.c, threads.h: Replaced
  137. "gscm" --> "scm" everywhere. Lots of name changes to concord with
  138. new Guile.
  139. Thu Apr 4 10:19:56 1996 Tom Tromey <tromey@creche.cygnus.com>
  140. Fixed CFLAGS usage:
  141. * Makefile.in (XCFLAGS): New macro.
  142. (.c.x): Use it.
  143. (.c.o): Ditto.
  144. * configure.in: Use DEFS, not X_CFLAGS.
  145. Fri Mar 29 17:08:14 1996 Anthony Green <green@snuffle.cygnus.com>
  146. * no-threads.c (gscm_threads_init_all): This function is now
  147. found in libguile.
  148. Fri Mar 29 16:52:27 1996 Tom Tromey <tromey@creche.cygnus.com>
  149. * configure.in (CFLAGS): Use "test !=", not "! test".
  150. Fri Mar 29 11:51:18 1996 Anthony Green <green@snuffle.cygnus.com>
  151. * Makefile.in (install): make install now works properly.
  152. Thu Mar 28 07:52:11 1996 Anthony Green <green@csk3.cygnus.com>
  153. * mit-pthreads.c: dynwinds set to BOOL_T for new threads.
  154. Added dummy yield function.
  155. Tue Mar 26 15:17:42 1996 Anthony Green (green@gerbil.cygnus.com)
  156. * coop.c: Added new sleep() function. Behaves properly
  157. among multiple cooperative threads. Replaces system call.
  158. Mon Mar 25 11:05:41 1996 Anthony Green (green@gerbil.cygnus.com)
  159. * coop.c (COOP_STKSIZE): Boosted default stack size.
  160. * coop-threads.c: Moved declaration of scm_coop_create_info
  161. to avoid multiple definitions at link time.
  162. Sun Mar 24 23:04:29 1996 Anthony Green (green@gerbil.cygnus.com)
  163. * configure: Rebuilt
  164. * configure.in: Upgraded thread library/include support.
  165. Tue Mar 19 12:44:26 1996 Anthony Green (green@gerbil.cygnus.com)
  166. * coop.c, coop-threads.h coop-threads.c: Major cleanup of
  167. cooperative threading code.
  168. Tue Feb 13 15:45:39 1996 Anthony Green <green@hoser.cygnus.com>
  169. * mit-pthreads.h: Defined pthread aware SCM_DEFER_INTS and friends.
  170. Mon Feb 12 19:59:55 1996 Anthony Green <green@hoser.cygnus.com>
  171. * threads.c, no-threads.c, mit-pthreads.c, threads.scm: Creation.