public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/65704] Provide portable versions of std::timed_mutex and std::recursive_timed_mutex
Date: Fri, 04 Sep 2015 11:24:00 -0000	[thread overview]
Message-ID: <bug-65704-4-WaNTfuK6HN@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-65704-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65704

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Fri Sep  4 11:23:44 2015
New Revision: 227490

URL: https://gcc.gnu.org/viewcvs?rev=227490&root=gcc&view=rev
Log:
Add portable timed_mutex and recursive_timed_mutex.

        PR libstdc++/65704
        * include/Makefile.am: Add <bits/mutex.h>.
        * include/Makefile.in: Regenerate.
        * include/bits/mutex.h (__mutex_base, mutex, lock_guard, unique_lock):
        New file containing types moved from <mutex>.
        * include/std/condition_variable: Include <bits/mutex.h> instead of
        <mutex>.
        * include/std/mutex (__mutex_base, mutex, lock_guard, unique_lock):
        Move to <bits/mutex.h>.
        *  testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Remove
        dg-require-gthreads-timed.
        *  testsuite/30_threads/recursive_timed_mutex/cons/assign_neg.cc:
        Likewise.
        *  testsuite/30_threads/recursive_timed_mutex/cons/copy_neg.cc:
        Likewise.
        *  testsuite/30_threads/recursive_timed_mutex/dest/
        destructor_locked.cc: Likewise.
        *  testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise.
        *  testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise.
        *  testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: Likewise.
        *  testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: Likewise.
        *  testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc:
        Likewise.
        *  testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc:
        Likewise.
        *  testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc:
        Likewise.
        *  testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc:
        Likewise.
        *  testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc:
        Likewise.
        *  testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise.
        *  testsuite/30_threads/timed_mutex/cons/1.cc: Likewise.
        *  testsuite/30_threads/timed_mutex/cons/assign_neg.cc: Likewise.
        *  testsuite/30_threads/timed_mutex/cons/copy_neg.cc: Likewise.
        *  testsuite/30_threads/timed_mutex/dest/destructor_locked.cc:
        Likewise.
        *  testsuite/30_threads/timed_mutex/lock/1.cc: Likewise.
        *  testsuite/30_threads/timed_mutex/requirements/standard_layout.cc:
        Likewise.
        *  testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise.
        *  testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise.
        *  testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise.
        *  testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise.
        *  testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise.
        *  testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise.
        *  testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise.
        *  testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: Likewise.
        *  testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise.
        *  testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
        *  testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
        *  testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
        *  testsuite/30_threads/unique_lock/locking/4.cc: Likewise.

Added:
    trunk/libstdc++-v3/include/bits/mutex.h
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/Makefile.am
    trunk/libstdc++-v3/include/Makefile.in
    trunk/libstdc++-v3/include/std/condition_variable
    trunk/libstdc++-v3/include/std/mutex
    trunk/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/cons/1.cc
   
trunk/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/cons/assign_neg.cc
   
trunk/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/cons/copy_neg.cc
   
trunk/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc
    trunk/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/lock/1.cc
    trunk/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/lock/2.cc
    trunk/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc
    trunk/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc
   
trunk/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc
   
trunk/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc
   
trunk/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc
   
trunk/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc
   
trunk/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc
    trunk/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/unlock/1.cc
    trunk/libstdc++-v3/testsuite/30_threads/timed_mutex/cons/1.cc
    trunk/libstdc++-v3/testsuite/30_threads/timed_mutex/cons/assign_neg.cc
    trunk/libstdc++-v3/testsuite/30_threads/timed_mutex/cons/copy_neg.cc
   
trunk/libstdc++-v3/testsuite/30_threads/timed_mutex/dest/destructor_locked.cc
    trunk/libstdc++-v3/testsuite/30_threads/timed_mutex/lock/1.cc
   
trunk/libstdc++-v3/testsuite/30_threads/timed_mutex/requirements/standard_layout.cc
    trunk/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock/1.cc
    trunk/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock/2.cc
    trunk/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/1.cc
    trunk/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/2.cc
    trunk/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/3.cc
    trunk/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/1.cc
    trunk/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/2.cc
    trunk/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/57641.cc
    trunk/libstdc++-v3/testsuite/30_threads/timed_mutex/unlock/1.cc
    trunk/libstdc++-v3/testsuite/30_threads/unique_lock/cons/5.cc
    trunk/libstdc++-v3/testsuite/30_threads/unique_lock/cons/6.cc
    trunk/libstdc++-v3/testsuite/30_threads/unique_lock/locking/3.cc
    trunk/libstdc++-v3/testsuite/30_threads/unique_lock/locking/4.cc


  parent reply	other threads:[~2015-09-04 11:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-08 19:37 [Bug libstdc++/65704] New: " redi at gcc dot gnu.org
2015-04-08 19:37 ` [Bug libstdc++/65704] " redi at gcc dot gnu.org
2015-04-09 10:17 ` redi at gcc dot gnu.org
2015-04-28 17:38 ` redi at gcc dot gnu.org
2015-09-04 11:24 ` redi at gcc dot gnu.org [this message]
2015-09-04 11:24 ` redi at gcc dot gnu.org
2015-09-04 14:17 ` iains at gcc dot gnu.org
2015-09-04 14:24 ` redi at gcc dot gnu.org
2015-09-04 16:09 ` redi at gcc dot gnu.org
2015-09-04 16:15 ` redi at gcc dot gnu.org

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=bug-65704-4-WaNTfuK6HN@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).