bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lock module improvement


From: Bruno Haible
Subject: Re: Lock module improvement
Date: Mon, 21 Jul 2008 12:24:53 +0200
User-agent: KMail/1.5.4

Hi Yoann,

> - Ability to disable specific backend on demand: some implementation use
> certain functionality that are incompatible with libpth, or depend on
> library that provide pthread support but no libpth support. As a result,
> it would be great if it was possible to explicitly disable a given
> backend.

I think you can effectively already do it. Like this:

  gl_LOCK
  if test $gl_threads_api = pth; then
    AC_FATAL([The pth threads implementation is not supported by this package.])
  fi

> - Implement support for condition variable.

You are welcome to contribute a module for this.

> - Implement support for thread creation.

Likewise. You find some code for this purpose at the top of tests/test-lock.c,
which you may be able to reuse.

> What about function that does not have an equivalent under certain
> backend (example: no support for condition timeout with libpth).

Enhancement request to Ralf Engelschall? :-)

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]