pthread: add pthread_{getname_np,setname_npp}
- These two functions imported for Linux/BSD compability. Signed-off-by: Han Pengfei <[email protected]> Change-Id: I3e9cada26f1ed043bfaed83e8185dcfff3bd71e2 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5746 Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
committed by
Jérôme Duval
parent
8e17b43da6
commit
44cceee67e
@@ -94,6 +94,9 @@ status_t __pthread_init_creation_attributes(
|
||||
void __pthread_set_default_priority(int32 priority);
|
||||
status_t __pthread_mutex_lock(pthread_mutex_t* mutex, bigtime_t timeout);
|
||||
|
||||
int __pthread_getname_np(pthread_t thread, char* buffer, size_t length);
|
||||
int __pthread_setname_np(pthread_t thread, const char* name);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user