thread.h vs pthread.h

Discussion of development and patch submission.
Post Reply
Zilog
Posts: 51
Joined: Wed 13 May, 2015 8:01 pm

thread.h vs pthread.h

Post by Zilog »

Hi Sarah
i have a question for you.
Why are you use a thread.h (c Standard) and not ptheread.h (Posix Standard, there is a porting for windows in mingw).
With "thread.h" is not possbile set affinity or priority, if not wrong.

Thanks a lot.
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: thread.h vs pthread.h

Post by SarahWalker »

Because I want to abstract thread operations from whatever the underlying library is?
Zilog
Posts: 51
Joined: Wed 13 May, 2015 8:01 pm

Re: thread.h vs pthread.h

Post by Zilog »

SarahWalker wrote: Sun 21 Jun, 2020 6:33 am Because I want to abstract thread operations from whatever the underlying library is?
You want mantence portable multiplatform the code.
Post Reply