Implement OSEventObjectWait*AndHoldBridgeLock
We're using fine-grained locking and not the bridge lock, so these are
the same as the ones that don't hold the bridge lock.
Change-Id: I58570463ea7472bcce215564ef46c750628dd938
diff --git a/services/server/env/fuchsia/osfunc.cc b/services/server/env/fuchsia/osfunc.cc
index e31f0e7..2981392 100644
--- a/services/server/env/fuchsia/osfunc.cc
+++ b/services/server/env/fuchsia/osfunc.cc
@@ -662,15 +662,19 @@
PVRSRV_ERROR
OSEventObjectWaitTimeoutAndHoldBridgeLock(IMG_HANDLE hOSEventKM, IMG_UINT64 uiTimeoutus)
{
- NOT_IMPLEMENTED();
- return PVRSRV_ERROR_NOT_SUPPORTED;
+#if defined(PVRSRV_USE_BRIDGE_LOCK)
+#error Bridge lock not supported
+#endif
+ return OSEventObjectWaitTimeout(hOSEventKM, uiTimeoutus);
}
PVRSRV_ERROR
OSEventObjectWaitAndHoldBridgeLock(IMG_HANDLE hOSEventKM)
{
- NOT_IMPLEMENTED();
- return PVRSRV_ERROR_NOT_SUPPORTED;
+#if defined(PVRSRV_USE_BRIDGE_LOCK)
+#error Bridge lock not supported
+#endif
+ return OSEventObjectWait(hOSEventKM);
}
PVRSRV_ERROR