projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into gfio
[fio.git]
/
gettime-thread.c
diff --git
a/gettime-thread.c
b/gettime-thread.c
index da409042f2ec6eb7344b6f943dad0eba84c54cd1..c1b4b0967c28f354b8a3e6c9ad82fc2845c41e56 100644
(file)
--- a/
gettime-thread.c
+++ b/
gettime-thread.c
@@
-14,12
+14,14
@@
static pthread_t gtod_thread;
void fio_gtod_init(void)
{
fio_tv = smalloc(sizeof(struct timeval));
void fio_gtod_init(void)
{
fio_tv = smalloc(sizeof(struct timeval));
- assert(fio_tv);
+ if (!fio_tv)
+ log_err("fio: smalloc pool exhausted\n");
}
static void fio_gtod_update(void)
{
}
static void fio_gtod_update(void)
{
- gettimeofday(fio_tv, NULL);
+ if (fio_tv)
+ gettimeofday(fio_tv, NULL);
}
static void *gtod_thread_main(void *data)
}
static void *gtod_thread_main(void *data)