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
@@ -19,6 +19,9 @@ extern "C" {
|
||||
|
||||
extern int pthread_getattr_np(pthread_t thread, pthread_attr_t* attr);
|
||||
|
||||
extern int pthread_getname_np(pthread_t thread, char* buffer, size_t length);
|
||||
extern int pthread_setname_np(pthread_t thread, const char* name);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user