Lines Matching defs:time
51 #include <time.h>
80 * For debugging purposes, this returns a time in seconds.
150 time_t time;
666 /** Frees all cached buffers significantly older than @time. */
668 cleanup_bo_cache(struct crocus_bufmgr *bufmgr, time_t time)
672 if (bufmgr->time == time)
679 if (time - bo->free_time <= 1)
699 bufmgr->time = time;
703 bo_unreference_final(struct crocus_bo *bo, time_t time)
715 bo->free_time = time;
728 struct timespec time;
730 clock_gettime(CLOCK_MONOTONIC, &time);
735 bo_unreference_final(bo, time.tv_sec);
736 cleanup_bo_cache(bufmgr, time.tv_sec);
881 * contain stale data from the last time we read from that mapping.
1095 * Waits on a BO for the given amount of time.
1098 * @timeout_ns: amount of time to wait in nanoseconds.
1102 * object has completed within the allotted time. Otherwise some negative return
1107 * the operation to give up after a certain amount of time. Another subtle
1113 * referenced within a batch buffer at the time of the call. The wait will