migrating processess to avoid the GIL

P

Patrick Stinson

I need to migrate calls to CPython to another process in my C++ app to
get around the GIL. Does anyone know of a good way to do this on
windows and Mac? All calls and callbacks can be blocking, I just need
to share some data structures.

Cheers
 
A

Aaron \Castironpi\ Brady

I need to migrate calls to CPython to another process in my C++ app to
get around the GIL. Does anyone know of a good way to do this on
windows and Mac? All calls and callbacks can be blocking, I just need
to share some data structures.

Cheers

You should look into 'mmap' and 'struct'. mmap shares memory between
processes, and is a random-access read-write file buffer. struct
packs data from primitive types (integers, floats, & short strings)
into a buffer.

If you need advice on structuring your shared file, feel free to write
back.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top