Home | History | Annotate | Download | only in sync

Lines Matching defs:fence

2  *  sync fence tests with one timeline
34 int fence, valid, ret;
40 fence = sw_sync_fence_create(timeline, "allocFence", 5);
41 valid = sw_sync_fence_is_valid(fence);
42 ASSERT(valid, "Failure allocating fence\n");
44 /* Wait on fence until timeout */
45 ret = sync_wait(fence, 0);
46 ASSERT(ret == 0, "Failure waiting on fence until timeout\n");
52 /* Wait on fence until timeout */
53 ret = sync_wait(fence, 0);
54 ASSERT(ret == 0, "Failure waiting on fence until timeout\n");
56 /* Signal the fence */
58 ASSERT(ret == 0, "Failure signaling the fence\n");
61 ret = sync_wait(fence, 0);
62 ASSERT(ret > 0, "Failure waiting on fence\n");
67 ret = sync_wait(fence, 0);
70 sw_sync_fence_destroy(fence);
81 /* create fence a,b,c and then merge them all into fence d */