threading issues with D -> C -> Python

Ellery Newcomer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Dec 2 22:11:55 PST 2014


On 12/02/2014 05:07 PM, Michael wrote:
> Hi. I'm new here and this is my first post. I'm not sure this is the
> right subforum for it, but wasn't sure where else to put it either.
>
> I've written a library to talk to some external hardware using a socket.
> It uses the std.concurrency threads to send messages between the main
> D-object for the hardware and the D-object for the sockets. I then
> wanted to be able to call these functions from Python. PyD appeared to
> be out of date, so I've been using a D -> C interface, and a C -> Python
> interface. The python code will often run from different python threads,
> so I then added yet another message-passing layer between the D->C
> interface and the D->hardware interface.
>

are you looking at this pyd: https://bitbucket.org/ariovistus/pyd



More information about the Digitalmars-d-learn mailing list