multithreading - Porting CreateThread calls to Win8 / WinRT App -


i need call c++ library c# win8/winrt app.

the library multithreaded , manages threads through calls win32 api (waitforsingleobject, etc.). able figure out replacements these calls (there ...ex version available apps, e.g. waitforsingleobjectex <synchapi.h> see there if you're looking it).

but there 1 call cannot figure out how replace: call createthread function. there no equivalent, looks such thread creation has go through new apis now.

but did not dive new threading model on winrt yet. experience, right way port threads creation call? constraint is c++ library build "c++ library winapp" project.

summing-up:

in library linking against app, threads created through createthread win32 api call. need change these calls works in app environment?

you correct: won't able replace createthread new call. have port threading code new apis.

from experience, link raman sharma's posted great reference if wish port code more winrt threadpool model. have used shim found there implement win32 thread emulation layer older win32-dependent code can interact with.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -