enable synchronous mode (functional)
Change-Id: I613610013e7e4d1623620ab94d2d25d8a1bd82b3
Bug: 5972398
diff --git a/cpp/rsCppStructs.h b/cpp/rsCppStructs.h
index a430c35..a381816 100644
--- a/cpp/rsCppStructs.h
+++ b/cpp/rsCppStructs.h
@@ -43,8 +43,7 @@
RS();
virtual ~RS();
- bool init() { return init(false); }
- bool init(bool forceCpu);
+ bool init(bool forceCpu = false, bool synchronous = false);
void setErrorHandler(ErrorHandlerFunc_t func);
ErrorHandlerFunc_t getErrorHandler() { return mErrorFunc; }
@@ -59,7 +58,7 @@
void finish();
private:
- bool init(int targetApi, bool forceCpu);
+ bool init(int targetApi, bool forceCpu, bool synchronous);
static void * threadProc(void *);
static bool gInitialized;