This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] remove unused __gthread_cond_timedwait_recursive


libgcc/ghtr.h claims that __gthread_cond_timedwait_recursive should be
defined to support the c++0x thread library, but that function isn't
used or needed anywhere by libstdc++:  std::condition_variable can
only be used with std::mutex (i.e. a non-recursive mutex) and
std::condition_variable_any uses a std::mutex internally so only ever
waits on a non-recursive mutex.

This patch removes the comment saying its required and the unused
gthr-posix.h implementation.

        * gthr.h (__gthread_cond_timedwait_recursive): Do not require.
        * gthr-posix.h (__gthread_cond_timedwait_recursive): Remove.

Tested x86_64-linux, OK for trunk, or should this wait for stage 1?

Attachment: patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]