From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 77390 invoked by alias); 2 May 2016 16:38:35 -0000 Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org Received: (qmail 77339 invoked by uid 89); 2 May 2016 16:38:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=H*Ad:U*pthreads-win32, pulls, laptops, Hx-spam-relays-external:sk:BY2NAM0 X-HELO: SNT004-OMC4S15.hotmail.com Received: from snt004-omc4s15.hotmail.com (HELO SNT004-OMC4S15.hotmail.com) (65.55.90.218) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA256 encrypted) ESMTPS; Mon, 02 May 2016 16:38:24 +0000 Received: from NAM01-BY2-obe.outbound.protection.outlook.com ([65.55.90.200]) by SNT004-OMC4S15.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Mon, 2 May 2016 09:38:23 -0700 Received: from BY2NAM01FT051.eop-nam01.prod.protection.outlook.com (10.152.68.53) by BY2NAM01HT165.eop-nam01.prod.protection.outlook.com (10.152.69.147) with Microsoft SMTP Server (TLS) id 15.1.477.4; Mon, 2 May 2016 16:38:21 +0000 Received: from CY1PR14MB0567.namprd14.prod.outlook.com (10.152.68.58) by BY2NAM01FT051.mail.protection.outlook.com (10.152.68.79) with Microsoft SMTP Server (TLS) id 15.1.485.4 via Frontend Transport; Mon, 2 May 2016 16:38:21 +0000 Received: from CY1PR14MB0567.namprd14.prod.outlook.com ([10.164.72.13]) by CY1PR14MB0567.namprd14.prod.outlook.com ([10.164.72.13]) with mapi id 15.01.0485.011; Mon, 2 May 2016 16:38:20 +0000 From: doug sanden To: "pthreads-win32@sourceware.org" Subject: windows universal aka uwp Date: Mon, 02 May 2016 16:38:00 -0000 Message-ID: authentication-results: spf=softfail (sender IP is 25.152.68.58) smtp.mailfrom=hotmail.com; sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=fail action=none header.from=hotmail.com; received-spf: SoftFail (protection.outlook.com: domain of transitioning hotmail.com discourages use of 25.152.68.58 as permitted sender) x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [mb2D2aRdZ2+IY0ReXRGV+smFq7qTtp/E] x-eopattributedmessage: 0 x-forefront-antispam-report: CIP:25.152.68.58;IPV:NLI;CTRY:GB;EFV:NLI;SFV:NSPM;SFS:(10019020)(98900003);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2NAM01HT165;H:CY1PR14MB0567.namprd14.prod.outlook.com;FPR:;SPF:SoftFail;MLV:ovrnspm;A:1;MX:1;LANG:en; x-ms-office365-filtering-correlation-id: 515693a0-a4fd-44f2-a9ad-08d372a82c22 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(5061506196)(5061507196);SRVR:BY2NAM01HT165; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(432015012)(82015046);SRVR:BY2NAM01HT165;BCL:0;PCL:0;RULEID:;SRVR:BY2NAM01HT165; x-forefront-prvs: 0930AAFAD9 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 02 May 2016 16:38:20.7569 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2NAM01HT165 X-IsSubscribed: yes X-SW-Source: 2016/txt/msg00001.txt.bz2 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.cp= p in the project directory http://dug9.users.sourceforge.net/web3d/temp/doug_pthreads_uwp_hack_may2_20= 16.zip I didn't do thorough tests - just enough to see the app is loading and doin= g a bit of pthreads. HTH -Doug more.. I hacked pthreads-win32 to get it working on uwp: - TlsAlloc, Free, Get, Set - weren't in the current WindowsApp.Lib - but ar= e supposed to be in 'Windows 1607' whatever that is -- so I #ifdefed some in (vs linking to kernel32.lib, which I shouldn't hav= e to do / may mess things up) - no SetThreadContext, and no LoadProgram, but has QueryUserAPC (not Ex) - linked with the uwp default WindowsApp.lib only. more.. Windows universal / uwp means it will run on hand-held devices, laptops, de= sktops 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.=20 https://github.com/coapp-packages/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 for= ce link and package the dll, on a mobile device it says 'The app failed to = start' and 'A dependent dll failed to load'. https://msdn.microsoft.com/en-us/library/windows/apps/br205757.aspx - 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.cp= p in the project directory http://dug9.users.sourceforge.net/web3d/temp/doug_pthreads_uwp_hack_may2_20= 16.zip