Lines Matching refs:fence
70 shared_ptr<Fence> fence(new Fence(fd, name)); in Create() local
71 if (!fence) { in Create()
77 return fence; in Create()
80 int Fence::Dup(const shared_ptr<Fence> &fence) { in Dup() argument
81 return (fence ? dup(fence->fd_) : -1); in Dup()
84 int Fence::Get(const shared_ptr<Fence> &fence) { in Get() argument
85 return (fence ? fence->fd_ : -1); in Get()
106 for (auto &fence : fences) { in Merge() local
107 if (ignore_signaled && (Fence::Wait(fence, 0) == kErrorNone)) { in Merge()
111 merged_fence = Fence::Merge(fence, merged_fence); in Merge()
117 DisplayError Fence::Wait(const shared_ptr<Fence> &fence) { in Wait() argument
120 return g_buffer_sync_handler_->SyncWait(Fence::Get(fence), 1000); in Wait()
123 DisplayError Fence::Wait(const shared_ptr<Fence> &fence, int timeout) { in Wait() argument
126 return g_buffer_sync_handler_->SyncWait(Fence::Get(fence), timeout); in Wait()
129 Fence::Status Fence::GetStatus(const shared_ptr<Fence> &fence) { in GetStatus() argument
132 if (!fence) { in GetStatus()
137 return (g_buffer_sync_handler_->SyncWait(Fence::Get(fence), 0) == kErrorTimeOut ? in GetStatus()
141 string Fence::GetStr(const shared_ptr<Fence> &fence) { in GetStr() argument
142 return std::to_string(Fence::Get(fence)); in GetStr()
172 int Fence::ScopedRef::Get(const shared_ptr<Fence> &fence) { in Get() argument
173 int dup_fd = Fence::Dup(fence); in Get()