diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-10-18 10:12:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-18 10:12:48 +0200 |
| commit | 36bfcd21d4ff11db13ba8487d7d1f8323cee7610 (patch) | |
| tree | 44020b7e0e52c958aa6d9f5a9453f302a41d27d5 /src/libtools | |
| parent | faa48276e5353a8303767ca7a94cc07cd8b81d91 (diff) | |
| parent | e1a2230e9ca654cdd2b4230060a304d792843914 (diff) | |
| download | box64-36bfcd21d4ff11db13ba8487d7d1f8323cee7610.tar.gz box64-36bfcd21d4ff11db13ba8487d7d1f8323cee7610.zip | |
Merge pull request #135 from mogery/getattr-align-wrap
Add alignment wrapper to pthread_getattr_np.
Diffstat (limited to 'src/libtools')
| -rwxr-xr-x | src/libtools/threads.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libtools/threads.c b/src/libtools/threads.c index 81ccba3a..31052118 100755 --- a/src/libtools/threads.c +++ b/src/libtools/threads.c @@ -417,6 +417,11 @@ EXPORT int my_pthread_attr_setstackaddr(x64emu_t* emu, pthread_attr_t* attr, voi return pthread_attr_setstack(getAlignedAttr(attr), addr, size); //return pthread_attr_setstackaddr(getAlignedAttr(attr), addr); } +EXPORT int my_pthread_getattr_np(x64emu_t* emu, pthread_t thread_id, pthread_attr_t* attr) +{ + (void)emu; + return pthread_getattr_np(thread_id, getAlignedAttrWithInit(attr, 0)); +} #endif EXPORT int my_pthread_create(x64emu_t *emu, void* t, void* attr, void* start_routine, void* arg) |