@@ -76,18 +76,18 @@ namespace boost
7676 detail::interruption_checker check_for_interruption (&internal_mutex,&cond);
7777 pthread_mutex_t * the_mutex = &internal_mutex;
7878 guard.activate (m);
79- res = pthread_cond_wait (&cond,the_mutex);
79+ res = posix:: pthread_cond_wait (&cond,the_mutex);
8080 check_for_interruption.unlock_if_locked ();
8181 guard.deactivate ();
8282#else
8383 pthread_mutex_t * the_mutex = m.mutex ()->native_handle ();
84- res = pthread_cond_wait (&cond,the_mutex);
84+ res = posix:: pthread_cond_wait (&cond,the_mutex);
8585#endif
8686 }
8787#if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS
8888 this_thread::interruption_point ();
8989#endif
90- if (res && res != EINTR )
90+ if (res)
9191 {
9292 boost::throw_exception (condition_error (res, " boost::condition_variable::wait failed in pthread_cond_wait" ));
9393 }
@@ -119,12 +119,12 @@ namespace boost
119119 detail::interruption_checker check_for_interruption (&internal_mutex,&cond);
120120 pthread_mutex_t * the_mutex = &internal_mutex;
121121 guard.activate (m);
122- cond_res=pthread_cond_timedwait (&cond,the_mutex,&timeout.getTs ());
122+ cond_res=posix:: pthread_cond_timedwait (&cond,the_mutex,&timeout.getTs ());
123123 check_for_interruption.unlock_if_locked ();
124124 guard.deactivate ();
125125#else
126126 pthread_mutex_t * the_mutex = m.mutex ()->native_handle ();
127- cond_res=pthread_cond_timedwait (&cond,the_mutex,&timeout.getTs ());
127+ cond_res=posix:: pthread_cond_timedwait (&cond,the_mutex,&timeout.getTs ());
128128#endif
129129 }
130130#if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS
@@ -146,15 +146,15 @@ namespace boost
146146#if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS
147147 boost::pthread::pthread_mutex_scoped_lock internal_lock (&internal_mutex);
148148#endif
149- BOOST_VERIFY (!pthread_cond_signal (&cond));
149+ BOOST_VERIFY (!posix:: pthread_cond_signal (&cond));
150150 }
151151
152152 inline void condition_variable::notify_all () BOOST_NOEXCEPT
153153 {
154154#if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS
155155 boost::pthread::pthread_mutex_scoped_lock internal_lock (&internal_mutex);
156156#endif
157- BOOST_VERIFY (!pthread_cond_broadcast (&cond));
157+ BOOST_VERIFY (!posix:: pthread_cond_broadcast (&cond));
158158 }
159159
160160 class condition_variable_any
@@ -166,22 +166,22 @@ namespace boost
166166 BOOST_THREAD_NO_COPYABLE (condition_variable_any)
167167 condition_variable_any ()
168168 {
169- int const res=pthread_mutex_init (&internal_mutex, NULL );
169+ int const res=posix:: pthread_mutex_init (&internal_mutex);
170170 if (res)
171171 {
172172 boost::throw_exception (thread_resource_error (res, " boost::condition_variable_any::condition_variable_any() failed in pthread_mutex_init" ));
173173 }
174- int const res2 = pthread::cond_init ( cond);
174+ int const res2 = posix::pthread_cond_init (& cond);
175175 if (res2)
176176 {
177- BOOST_VERIFY (!pthread_mutex_destroy (&internal_mutex));
178- boost::throw_exception (thread_resource_error (res2, " boost::condition_variable_any::condition_variable_any() failed in pthread::cond_init " ));
177+ BOOST_VERIFY (!posix:: pthread_mutex_destroy (&internal_mutex));
178+ boost::throw_exception (thread_resource_error (res2, " boost::condition_variable_any::condition_variable_any() failed in pthread_cond_init " ));
179179 }
180180 }
181181 ~condition_variable_any ()
182182 {
183- BOOST_VERIFY (!pthread_mutex_destroy (&internal_mutex));
184- BOOST_VERIFY (!pthread_cond_destroy (&cond));
183+ BOOST_VERIFY (!posix:: pthread_mutex_destroy (&internal_mutex));
184+ BOOST_VERIFY (!posix:: pthread_cond_destroy (&cond));
185185 }
186186
187187 template <typename lock_type>
@@ -196,7 +196,7 @@ namespace boost
196196 boost::pthread::pthread_mutex_scoped_lock check_for_interruption (&internal_mutex);
197197#endif
198198 guard.activate (m);
199- res=pthread_cond_wait (&cond,&internal_mutex);
199+ res=posix:: pthread_cond_wait (&cond,&internal_mutex);
200200 check_for_interruption.unlock_if_locked ();
201201 guard.deactivate ();
202202 }
@@ -438,13 +438,13 @@ namespace boost
438438 void notify_one () BOOST_NOEXCEPT
439439 {
440440 boost::pthread::pthread_mutex_scoped_lock internal_lock (&internal_mutex);
441- BOOST_VERIFY (!pthread_cond_signal (&cond));
441+ BOOST_VERIFY (!posix:: pthread_cond_signal (&cond));
442442 }
443443
444444 void notify_all () BOOST_NOEXCEPT
445445 {
446446 boost::pthread::pthread_mutex_scoped_lock internal_lock (&internal_mutex);
447- BOOST_VERIFY (!pthread_cond_broadcast (&cond));
447+ BOOST_VERIFY (!posix:: pthread_cond_broadcast (&cond));
448448 }
449449 private:
450450
@@ -471,7 +471,7 @@ namespace boost
471471 boost::pthread::pthread_mutex_scoped_lock check_for_interruption (&internal_mutex);
472472#endif
473473 guard.activate (m);
474- res=pthread_cond_timedwait (&cond,&internal_mutex,&timeout.getTs ());
474+ res=posix:: pthread_cond_timedwait (&cond,&internal_mutex,&timeout.getTs ());
475475 check_for_interruption.unlock_if_locked ();
476476 guard.deactivate ();
477477 }
0 commit comments