Calling into Python from a C thread
Philip Semanchuk
philip at semanchuk.com
Mon Feb 9 12:28:50 EST 2009
On Feb 9, 2009, at 12:02 PM, Aahz wrote:
> [posted & e-mailed]
>
> In article <mailman.8619.1233597806.3487.python-list at python.org>,
> Philip Semanchuk <philip at semanchuk.com> wrote:
>>
>> I'm trying call Python from inside of a C thread that's running in a
>> Python extension I've written and I am not having much luck. My C
>> thread function consists of simply this, and I get a segmentation
>> fault from Python:
>
> Because it's been a week without response, I suggest you try the capi
> mailing list.
I didn't know there *was* such a thing. Thanks for the tip! For those
who might be interested, the list is here:
http://mail.python.org/mailman/listinfo/capi-sig
FYI, I got my code working and it is in the latest release of posix_ipc:
http://semanchuk.com/philip/posix_ipc/
The function MessageQueue_request_notification() does some necessary
setup and the function process_notification() does the rest of the work.
Cheers
Philip
More information about the Python-list
mailing list