[DEV] add base of metadata set of the thread
This commit is contained in:
parent
5322b71c00
commit
b6db3331a5
@ -182,3 +182,15 @@ int32_t ethread::getPriority(std::thread& _thread) {
|
|||||||
return 20;
|
return 20;
|
||||||
#endif
|
#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;
|
||||||
|
}
|
@ -69,4 +69,21 @@ namespace ethread {
|
|||||||
* @return current priority of the thread
|
* @return current priority of the thread
|
||||||
*/
|
*/
|
||||||
int32_t getPriority(std::thread& _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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user