caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Markus Mottl <markus.mottl@gmail.com>
To: Chet Murthy <murthy.chet@gmail.com>
Cc: oliver <oliver@first.in-berlin.de>, OCaml List <caml-list@inria.fr>
Subject: Re: [Caml-list] ocaml systhreads condition variables: no condvar_timedwait?
Date: Mon, 11 Mar 2013 20:25:05 -0400	[thread overview]
Message-ID: <CAP_800p62WqdgkGvS6mv4SD6fD_KP-Be86EFCaHMX1aZRO=CpA@mail.gmail.com> (raw)
In-Reply-To: <2278470.xAKQ5esFd6@groupon>

On Mon, Mar 11, 2013 at 7:11 PM, Chet Murthy <murthy.chet@gmail.com> wrote:
> Oops, sorry, yes, I meant pthread_cond_timedwait().  In any case, it's
> not wrappered in Ocaml systhreads, though clearly from the
> implementation of pthread_cond_wait() (well, "st_condvar_wait" in
> st_posix.h), it's trivial to add.
>
> Just wondering why it was omitted, is all.

FWIW, the Jane Street Core library implements this function in
Core.Std.Condition.timedwait.  I think it should be part of the
standard library, too, since it's a POSIX standard.

Regards,
Markus

-- 
Markus Mottl        http://www.ocaml.info        markus.mottl@gmail.com

      reply	other threads:[~2013-03-12  0:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-11 22:17 Chet Murthy
2013-03-11 23:09 ` oliver
2013-03-11 23:11   ` Chet Murthy
2013-03-12  0:25     ` Markus Mottl [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAP_800p62WqdgkGvS6mv4SD6fD_KP-Be86EFCaHMX1aZRO=CpA@mail.gmail.com' \
    --to=markus.mottl@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=murthy.chet@gmail.com \
    --cc=oliver@first.in-berlin.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).