mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-23 04:50:28 +02:00
*** empty log message ***
This commit is contained in:
parent
b74b1a6387
commit
2afe9d0e3e
1 changed files with 0 additions and 26 deletions
26
NEWS
26
NEWS
|
@ -238,32 +238,6 @@ coop_condition_variable_init. They will change.
|
|||
|
||||
Use scm_mutex_init and scm_cond_init instead.
|
||||
|
||||
** scm_mutex_init now takes a second argument
|
||||
|
||||
scm_mutex_init has changed: It now takes a second, attribute,
|
||||
argument. For now, pass NULL as second arg.
|
||||
|
||||
If your application uses mutecis and you want to be compatible with
|
||||
both older and newer Guile's, put:
|
||||
|
||||
AC_CACHE_CHECK(for two argument scm_mutex_init,
|
||||
ac_cv_func_scm_mutex_init_two_args,
|
||||
AC_TRY_COMPILE([#include <libguile.h>],[scm_mutex_init (NULL, NULL);],
|
||||
ac_cv_func_scm_mutex_init_two_args=yes,
|
||||
ac_cv_func_scm_mutex_init_two_args=no))
|
||||
if test "$ac_cv_func_scm_mutex_init_two_args" = "yes"; then
|
||||
AC_DEFINE(SCM_MUTEX_INIT_TWO_ARGS, 1,
|
||||
[define if scm_mutex_init takes two arguments])
|
||||
fi
|
||||
|
||||
in your configure.in and call scm_mutex_init like this:
|
||||
|
||||
#ifdef SCM_MUTEX_INIT_TWO_ARGS
|
||||
scm_mutex_init (&my_mutex, NULL);
|
||||
#else
|
||||
scm_mutex_init (&my_mutex);
|
||||
#endif
|
||||
|
||||
** New function: int scm_cond_timedwait (scm_cond_t *COND, scm_mutex_t *MUTEX, const struct timespec *ABSTIME)
|
||||
`scm_cond_timedwait' atomically unlocks MUTEX and waits on
|
||||
COND, as `scm_cond_wait' does, but it also bounds the duration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue