Commit 754854ab by Marcus Winter

mtapi_cpp: added setter to enable main thread reuse

parent 784baa28
......@@ -232,6 +232,16 @@ class NodeAttributes {
return *this;
}
NodeAttributes & SetReuseMainThread(
mtapi_boolean_t reuse
) {
mtapi_status_t status;
mtapi_nodeattr_set(&attributes_, MTAPI_NODE_REUSE_MAIN_THREAD,
&reuse, sizeof(reuse), &status);
internal::CheckStatus(status);
return *this;
}
/**
* Returns the internal representation of this object.
* Allows for interoperability with the C interface.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment