diff options
| author | Jonathan Wakely <jwakely.gcc@gmail.com> | 2010-02-03 20:16:22 +0000 |
|---|---|---|
| committer | Jonathan Wakely <redi@gcc.gnu.org> | 2010-02-03 20:16:22 +0000 |
| commit | b7200e3fbe491746297021dc1a29daf55cc2298f (patch) | |
| tree | 76dcaf635a71e06fcab976a9cb215f45862c0a0d /libstdc++-v3/src | |
| parent | a7f3e500f223710cbe92627c5ba7759272a43b74 (diff) | |
| download | gcc-b7200e3fbe491746297021dc1a29daf55cc2298f.tar.gz gcc-b7200e3fbe491746297021dc1a29daf55cc2298f.tar.bz2 gcc-b7200e3fbe491746297021dc1a29daf55cc2298f.zip | |
condition_variable (condition_variable_any): Provide definitions for all members.
2010-02-03 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/std/condition_variable (condition_variable_any): Provide
definitions for all members.
* src/condition_variable.cc (condition_variable_any): Adjust
definitions.
* config/abi/pre/gnu.ver: Adjust exports for condition_variable_any.
* testsuite/30_threads/condition_variable_any/cons/assign_neg.cc:
Adjust dg-error line number.
* testsuite/30_threads/condition_variable_any/cons/copy_neg.cc:
Likewise.
* testsuite/30_threads/condition_variable_any/members/1.cc: New.
* testsuite/30_threads/condition_variable_any/members/2.cc: New.
* testsuite/30_threads/condition_variable_any/requirements/
standard_layout.cc: Remove.
* testsuite/30_threads/condition_variable_any/native_handle/
typesizes.cc: Remove.
From-SVN: r156479
Diffstat (limited to 'libstdc++-v3/src')
| -rw-r--r-- | libstdc++-v3/src/condition_variable.cc | 38 |
1 files changed, 2 insertions, 36 deletions
diff --git a/libstdc++-v3/src/condition_variable.cc b/libstdc++-v3/src/condition_variable.cc index b4203799253..fdcb6a04b38 100644 --- a/libstdc++-v3/src/condition_variable.cc +++ b/libstdc++-v3/src/condition_variable.cc @@ -80,44 +80,10 @@ namespace std } condition_variable_any::condition_variable_any() throw () - { -#ifdef __GTHREAD_COND_INIT - __native_type __tmp = __GTHREAD_COND_INIT; - _M_cond = __tmp; -#else - int __e = __gthread_cond_init(&_M_cond, NULL); - - if (__e) - __throw_system_error(__e); -#endif - } + { } condition_variable_any::~condition_variable_any() throw () - { - __gthread_cond_destroy(&_M_cond); - } - - void - condition_variable_any::notify_one() - { - int __e = __gthread_cond_signal(&_M_cond); - - // XXX not in spec - // EINVAL - if (__e) - __throw_system_error(__e); - } - - void - condition_variable_any::notify_all() - { - int __e = __gthread_cond_broadcast(&_M_cond); - - // XXX not in spec - // EINVAL - if (__e) - __throw_system_error(__e); - } + { } } #endif // _GLIBCXX_HAS_GTHREADS && _GLIBCXX_USE_C99_STDINT_TR1 |
