Re: [Mingw-w64-public] Shared semaphores

2013-11-04 Thread LRN
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04.11.2013 20:19, Edscott Wilson wrote: > Well I did my testing of semaphores to release a windows version > of libtubo (http://xffm.org/libtubo.html) and these are my two > cents. > > 1- Shared semaphores (shared between heavy weight processes). I

Re: [Mingw-w64-public] Shared semaphores

2013-11-04 Thread Edscott Wilson
2013/11/4 Kai Tietz > > > Pthread_ stuff applies only to threads, created with pthread_create. > While > > semaphores may apply to independent processes. As far as I recall, > > semaphores require interaction with the kernel, while pthread stuff is > > contained within the running program. Thus,

Re: [Mingw-w64-public] Shared semaphores

2013-11-04 Thread Kai Tietz
Ah, right. I missed that we provide here semaphore-API, too. I wouldn't call that API posix ... but yes, this is a bare-layer to be used carefully ... we implement in winpthread nearly all more complex stuff based on the sem-API. 2013/11/4 Edscott Wilson : > As I understand it, all it takes to g

Re: [Mingw-w64-public] Shared semaphores

2013-11-04 Thread Edscott Wilson
As I understand it, all it takes to get a POSIX semaphore in windows is to include and link with -lpthread. Windows semaphores are defined in . Since POSIX semaphores are in libpthread, they would be "pthread" semaphores. Nonetheless, I think they have a different flavor. The bulk of pthread func

Re: [Mingw-w64-public] Shared semaphores

2013-11-04 Thread Kai Tietz
Hi Edscott, thanks for testing this. I just have one small question about one paragraph. 2013/11/4 Edscott Wilson : > 2- Local semaphores (shared only between threads). Posix semaphores in Mingw > seem to be subject to race conditions not present in Linux or FreeBSD. When > I tried to use them i

Re: [Mingw-w64-public] Shared semaphores

2013-11-04 Thread Edscott Wilson
Well I did my testing of semaphores to release a windows version of libtubo (http://xffm.org/libtubo.html) and these are my two cents. 1- Shared semaphores (shared between heavy weight processes). In Linux, a shared semaphore must be placed in shared memory. This is easy, since the shm_ family of

Re: [Mingw-w64-public] Cross-compiling linker issue

2013-11-04 Thread Alexpux
04 нояб. 2013 г., в 20:03, Zbigniew Diaczyszyn написал(а): > Am 04.11.2013 15:26, schrieb Alexpux: >> Show how you build tcl/tk > > In general I don't build but I use a binary Community version from > ActiveState. Under Unix It provides the libtclstub8.5.a library which offers > all the point

Re: [Mingw-w64-public] Cross-compiling linker issue

2013-11-04 Thread Zbigniew Diaczyszyn
Am 04.11.2013 15:26, schrieb Alexpux: > Show how you build tcl/tk In general I don't build but I use a binary Community version from ActiveState. Under Unix It provides the libtclstub8.5.a library which offers all the pointers to the Tcl commands used by the C Tcl extension I am trying to build.

Re: [Mingw-w64-public] Cross-compiling linker issue

2013-11-04 Thread niXman
> Well, it's me, the author ... Are you Kyle Schwarz? -- Regards, niXman ___ Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows: http://sourceforge.net/projects/mingw-w64/ ___ Ano

Re: [Mingw-w64-public] Cross-compiling linker issue

2013-11-04 Thread Alexpux
04 нояб. 2013 г., в 16:23, Zbigniew Diaczyszyn написал(а): > I have tried to cross-compile a 64bit dll for Windows on a 64bit Linux > host: Linux darkstar 3.2.29 x86_64 > > The mingw64 toolchain has been built from scratch with the MingGW-w64 > Build Script 3.5.0 found on > http://zeranoe.com

Re: [Mingw-w64-public] Cross-compiling linker issue

2013-11-04 Thread Zbigniew Diaczyszyn
Am 04.11.2013 13:48, schrieb niXman: > > Why don't you email to the author of the used script? > Well, it's me, the author ... -- Zbigniew Diaczyszyn Web: http://zdia.de PGP Key ID: 0x52052C79 -- Android is increas

Re: [Mingw-w64-public] Cross-compiling linker issue

2013-11-04 Thread niXman
Zbigniew Diaczyszyn писал 2013-11-04 16:23: > I have tried to cross-compile a 64bit dll for Windows on a 64bit Linux > host: Linux darkstar 3.2.29 x86_64 > > The mingw64 toolchain has been built from scratch with the MingGW-w64 > Build Script 3.5.0 found on > http://zeranoe.com/scripts/mingw_w64

[Mingw-w64-public] Cross-compiling linker issue

2013-11-04 Thread Zbigniew Diaczyszyn
I have tried to cross-compile a 64bit dll for Windows on a 64bit Linux host: Linux darkstar 3.2.29 x86_64 The mingw64 toolchain has been built from scratch with the MingGW-w64 Build Script 3.5.0 found on http://zeranoe.com/scripts/mingw_w64_build/mingw-w64-build-3.5.0 based on MinGW-w64 3.0.0 an