gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] gm2 on gcc-5.2.0


From: Dragiša Durić
Subject: Re: [Gm2] gm2 on gcc-5.2.0
Date: Sun, 1 Jan 2017 19:38:44 +0100

I don’t think coroutines can be implemented with POSIX threads, and definitely  not by simple pth<->pthread function replacement. Difference is fundamental - from OS side coroutine is nothing special while POSIX thread is “everything special”, almost a process.

But, if I understand correctly, John is not asking for that, he maybe missinterpreted what libpth and libpthread are…? 
--
Dragiša Durić

On 01 Jan 2017, at 13:55, Gaius Mulley <address@hidden> wrote:

john o goyo <address@hidden> writes:

Gaius:

On 24/12/2016 10:22, Gaius Mulley wrote:

Hi,

just to report that the gm2 graft onto gcc-5.2.0 now completely builds
on an LP64 debian system with the following results.

The gm2-5.2.0 build fails (with the latest tarball) on Solaris
10/sparc. On Solaris, POSIX threads are in libpthread, not libpth.  Is
there a simple way to switch from -lpth to -lpthread in the gm2
portion?

john

Hi John,

there isn't yet a simple way, it could be implemented if required
though.  Gm2 uses libpth for the create context (NEWPROCESS), switch
context (TRANSFER) and pth_select for (IOTRANSFER).  Do these low level
(create context/switch context) primitives exist in libpthread ?

Here are the actual symbols used:

pth_uctx_create, pth_uctx_make,
pth_uctx_save, pth_uctx_switch,

and type

pth_uctx_t

If these symbols exist then we could certainly change the driver to pick
up -lpthread at link time in the gm2 driver.  ./configure could also be
changed to override the choice at build time as well.

I wonder if it might be easier to build libpth and install it locally
to work around the problem for now?

regards,
Gaius

_______________________________________________
gm2 mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/gm2


reply via email to

[Prev in Thread] Current Thread [Next in Thread]