mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07:26:15 +01:00
don't g_assert() the user specified time, but g_return_val_if_fail() here.
Fri May 4 04:14:45 2001 Tim Janik <timj@gtk.org> * gthread-posix.c (g_cond_timed_wait_posix_impl): don't g_assert() the user specified time, but g_return_val_if_fail() here.
This commit is contained in:
parent
6cc6a59d38
commit
4d7747a58e
@ -1,3 +1,8 @@
|
||||
Fri May 4 04:14:45 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gthread-posix.c (g_cond_timed_wait_posix_impl): don't g_assert()
|
||||
the user specified time, but g_return_val_if_fail() here.
|
||||
|
||||
2001-04-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gthread-posix.c: Added special case for priorities on
|
||||
|
@ -202,7 +202,9 @@ g_cond_timed_wait_posix_impl (GCond * cond,
|
||||
|
||||
end_time.tv_sec = abs_time->tv_sec;
|
||||
end_time.tv_nsec = abs_time->tv_usec * (G_NSEC_PER_SEC / G_USEC_PER_SEC);
|
||||
g_assert (end_time.tv_nsec < G_NSEC_PER_SEC);
|
||||
|
||||
g_return_val_if_fail (end_time.tv_nsec < G_NSEC_PER_SEC, TRUE);
|
||||
|
||||
result = pthread_cond_timedwait ((pthread_cond_t *) cond,
|
||||
(pthread_mutex_t *) entered_mutex,
|
||||
&end_time);
|
||||
|
Loading…
Reference in New Issue
Block a user