From 754854abcb9737c6d2046694a7eda5ad5a229377 Mon Sep 17 00:00:00 2001 From: Marcus Winter Date: Thu, 27 Oct 2016 11:45:54 +0200 Subject: [PATCH] mtapi_cpp: added setter to enable main thread reuse --- mtapi_cpp/include/embb/mtapi/node_attributes.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mtapi_cpp/include/embb/mtapi/node_attributes.h b/mtapi_cpp/include/embb/mtapi/node_attributes.h index 9c6c0ab..ec2e016 100644 --- a/mtapi_cpp/include/embb/mtapi/node_attributes.h +++ b/mtapi_cpp/include/embb/mtapi/node_attributes.h @@ -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. -- libgit2 0.26.0