If you just need the common thread callback function and a mutex, you can do that with the Windows API. It’s not too difficult.
See the old thread implementation used by OpenFrameworks which uses both pthread & win api, depending on the platform: ofxThread.h <https://github.com/openframeworks/openFrameworks/blob/6e7d325ec6f0046f281498797748da173a84aa7e/libs/openFrameworks/utils/ofThread.h> ofxThread.cpp <https://github.com/openframeworks/openFrameworks/blob/6e7d325ec6f0046f281498797748da173a84aa7e/libs/openFrameworks/utils/ofThread.cpp> Then you wouldn’t need to require win-pthreads32 or similar compatibility library when building. > On Jan 29, 2017, at 9:43 PM, [email protected] wrote: > > From: Derek Kwan <[email protected] <mailto:[email protected]>> > Subject: Re: [PD] [coll] bug > Date: January 29, 2017 at 8:49:56 PM MST > To: Alexandre Torres Porres <[email protected] <mailto:[email protected]>> > Cc: "[email protected] <mailto:[email protected]>" > <[email protected] <mailto:[email protected]>> > > > On Jan 29, Alexandre Torres Porres wrote: >> yeah, derek was talking about our current development, where we screwed up >> with the order of bangs in the unthreaded - but fixed now. >> >> Derek, would you care to elaborate why you think unthreaded should be the >> default? >> > > I had some concerns with pthreads and Windows compat but it looks like > those aren't issues (? I don't have much experience with Windows dev) so > I think I would be fine either way. -------- Dan Wilcox @danomatika <http://twitter.com/danomatika> danomatika.com <http://danomatika.com/> robotcowboy.com <http://robotcowboy.com/>
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
