(scm_yield): Correction, actually call scm_thread_yield.
authorKevin Ryde <user42@zip.com.au>
Sat, 24 Apr 2004 21:19:30 +0000 (21:19 +0000)
committerKevin Ryde <user42@zip.com.au>
Sat, 24 Apr 2004 21:19:30 +0000 (21:19 +0000)
Reported by Hyperdivision.

libguile/threads.c

index e347c79..c5c3ca7 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995,1996,1997,1998,2000,2001, 2002, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 1995,1996,1997,1998,2000,2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  * 
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -443,7 +443,7 @@ SCM_DEFINE (scm_yield, "yield", 0, 0, 0,
 "Move the calling thread to the end of the scheduling queue.")
 #define FUNC_NAME s_scm_yield
 {
-  return SCM_BOOL (scm_thread_yield);
+  return SCM_BOOL (scm_thread_yield ());
 }
 #undef FUNC_NAME