public inbox for
 help / color / mirror / Atom feed
* windows universal aka uwp
@ 2016-05-02 16:38 doug sanden
  0 siblings, 0 replies; only message in thread
From: doug sanden @ 2016-05-02 16:38 UTC (permalink / raw)
  To: pthreads-win32

I got pthread-win32 to work in windows universal on a mobile emulator
Here's my hacked files and uwp/vs2015 project, and see also the TlsFuncs.cpp in the project directory

I didn't do thorough tests - just enough to see the app is loading and doing a bit of pthreads.


I hacked pthreads-win32 to get it working on uwp:
- TlsAlloc, Free, Get, Set - weren't in the current WindowsApp.Lib - but are supposed to be in 'Windows 1607' whatever that is
-- so I #ifdefed some in (vs linking to kernel32.lib, which I shouldn't have to do / may mess things up)
- no SetThreadContext, and no LoadProgram, but has QueryUserAPC (not Ex)
- linked with the uwp default WindowsApp.lib only.

Windows universal / uwp means it will run on hand-held devices, laptops, desktops running windows 10
For all the basics, you link to one .lib WindowsApp.lib and it links to all the little libs and at runtime pulls in all the little dlls.

there's a nuget package for pthreads.
that can be loaded in VisualStudio 2015 and referenced in projects.
But it doesn't work on windows universal uwp, I found. In the nuget package management conditions it filters itself out for uwp apps, if I try and force link and package the dll, on a mobile device it says 'The app failed to start' and 'A dependent dll failed to load'.
- follow the link to UWP, and it has lists for ALL vs EXT
There are 2 classes of APIs, which I'll refer to as ALL and EXT
ALL - guaranteed to be on all win10 uwp devices
EXT- maybe. Maybe not on a specific device. Guard / check.

Here's my hacked files and uwp/vs2015 project, and see also the TlsFuncs.cpp in the project directory

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-02 16:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-02 16:38 windows universal aka uwp doug sanden

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).