aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/src
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@redhat.com>2009-02-13 00:14:42 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2009-02-13 00:14:42 +0000
commitd5cf20212b5d2dffef258305209e971fb1ecc1ce (patch)
treede53cbcabda834eb408ab487451764762c75ad0a /libstdc++-v3/src
parented7284dd13b289163440589eda15cccd9ca3ea71 (diff)
downloadgcc-d5cf20212b5d2dffef258305209e971fb1ecc1ce.zip
gcc-d5cf20212b5d2dffef258305209e971fb1ecc1ce.tar.gz
gcc-d5cf20212b5d2dffef258305209e971fb1ecc1ce.tar.bz2
all.h (compare_type_to_native_type_sizes): To...
2009-02-12 Benjamin Kosnik <bkoz@redhat.com> * testsuite/util/thread/all.h (compare_type_to_native_type_sizes): To... (compare_type_to_native_type): ...this, add alignment check. * testsuite/30_threads/condition_variable_any/native_handle/ typesizes.cc: Modify as above. * testsuite/30_threads/mutex/native_handle/typesizes.cc: Same. * testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Same. * testsuite/30_threads/thread/native_handle/typesizes.cc: Same. * testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc: Same. * testsuite/30_threads/condition_variable/native_handle/ typesizes.cc: Same. * testsuite/30_threads/recursive_timed_mutex/native_handle/ typesizes.cc: Same. * testsuite/30_threads/thread/cons/1.cc: Add comments. * testsuite/30_threads/thread/cons/2.cc: Same. * testsuite/30_threads/thread/cons/3.cc: Same. * testsuite/30_threads/thread/cons/4.cc: Same. * testsuite/30_threads/thread/cons/5.cc: Same. * testsuite/30_threads/thread/cons/6.cc: Same. * testsuite/30_threads/thread/cons/7.cc: Same. * testsuite/30_threads/thread/cons/8.cc: Same. * testsuite/30_threads/thread/cons/9.cc: New. * testsuite/30_threads/thread/cons/moveable.cc: New. * src/condition_variable.cc: Clean up whitespace. * include/std/condition_variable: Same. From-SVN: r144142
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r--libstdc++-v3/src/condition_variable.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/libstdc++-v3/src/condition_variable.cc b/libstdc++-v3/src/condition_variable.cc
index c916bf0..c36881b 100644
--- a/libstdc++-v3/src/condition_variable.cc
+++ b/libstdc++-v3/src/condition_variable.cc
@@ -59,12 +59,12 @@ namespace std
int __e = __gthread_cond_wait(&_M_cond, __lock.mutex()->native_handle());
if (__e)
- __throw_system_error(__e);
+ __throw_system_error(__e);
}
-
- void
+
+ void
condition_variable::notify_one()
- {
+ {
int __e = __gthread_cond_signal(&_M_cond);
// XXX not in spec
@@ -73,9 +73,9 @@ namespace std
__throw_system_error(__e);
}
- void
+ void
condition_variable::notify_all()
- {
+ {
int __e = __gthread_cond_broadcast(&_M_cond);
// XXX not in spec
@@ -96,11 +96,11 @@ namespace std
__throw_system_error(__e);
#endif
}
-
+
condition_variable_any::~condition_variable_any()
{
__gthread_cond_destroy(&_M_cond);
- }
+ }
}
#endif // _GLIBCXX_HAS_GTHREADS && _GLIBCXX_USE_C99_STDINT_TR1