unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* hacking on 1.7 threads
@ 2004-10-19 13:46 Julian Graham
  2004-10-23 23:55 ` Julian Graham
  0 siblings, 1 reply; 8+ messages in thread
From: Julian Graham @ 2004-10-19 13:46 UTC (permalink / raw)


Hi guys,
  I'm trying to debug this thread cancellation patch I wrote against
CVS HEAD, and I'm having a bit of trouble sorting out the source
files.
  The first thing I noticed was that it didn't look like a new Pthread
was being created when I called call-with-new-thread from my Scheme
code; after looking in the Makefile, it looks like none of
threads-plugin.c, pthread-threads.c, and null-threads.c are getting
compiled -- they're all in this list of EXTRA_DIST files.  Am I
missing something?  How can the new threads system get used if it's
not even getting built in?
  Also, I noticed that coop-pthreads.c has a more recent CVS
modification time (if I'm reading the CVS log right) than threads.c,
even though the comments in both files lead me to believe that
threads.c is the future.  Am I missing something?  The way I figured
the new threading stuff was going to work was:

  - threads.c: implements generic thread-manipulation stuff, like
creating and freeing the scm_thread structure, etc.
  - threads-plugin.c, [threading-library]-threads.h: defines some
wrappers for the actual threading-library functions, such as the
scm_i_plugin_* functions.
  - [threading-library]-threads.c: contains any functions that need to
be implemented using the actual API from the chosen threading library.
 This is probably only a few things in most cases, since
threads-plugin maps the plugin functions directly to threading API
calls -- e.g., scm_i_plugin_thread_self -> pthread_self.

  Any corrections?


Cheers,
Julian


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-12-22 16:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-19 13:46 hacking on 1.7 threads Julian Graham
2004-10-23 23:55 ` Julian Graham
2004-10-24  2:16   ` Rob Browning
2004-10-24  9:29   ` Mikael Djurfeldt
2004-10-24 16:02     ` Julian Graham
2004-10-30 20:45     ` Julian Graham
2004-11-07  4:30       ` Julian Graham
2004-12-22 16:20         ` Marius Vollmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).