[DEV] add base of metadata set of the thread

This commit is contained in:
Edouard DUPIN 2017-05-03 11:52:44 +00:00
parent 5322b71c00
commit b6db3331a5
2 changed files with 29 additions and 0 deletions

View File

@ -182,3 +182,15 @@ int32_t ethread::getPriority(std::thread& _thread) {
return 20;
#endif
}
void ethread::metadataSet(const std::string& _key, uint64_t _value) {
}
void ethread::metadataRemove(const std::string& _key) {
}
uint64_t ethread::metadataGetU64(const std::string& _key) {
return 0;
}

View File

@ -69,4 +69,21 @@ namespace ethread {
* @return current priority of the thread
*/
int32_t getPriority(std::thread& _thread);
/**
* @brief Set an information with a key on the current thread
* @param[in] _key key to store the value
* @param[in] _value Value to store
*/
void metadataSet(const std::string& _key, uint64_t _value);
/**
* @brief Remove the information with a key on the current thread
* @param[in] _key key to remove
*/
void metadataRemove(const std::string& _key);
/**
* @brief get the information with a key on the current thread
* @param[in] _key key to store the value
* @return the uint 64 value to stored
*/
uint64_t metadataGetU64(const std::string& _key);
}