FAQ
Is it safe to call PyThread_acquire_lock and PyThread_release_lock on
a PyThread_type_lock from a native thread that:
a) was not created by Python
b) has no bootsrapped Python thread state
c) does not have the GIL locked
?

It appears that this is safe, since the GIL itself is of type
PyThread_type_lock, but I want to make sure that I'm not missing some
fatal subtlety.

Thanks.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedJun 21, '02 at 5:00a
activeJun 21, '02 at 5:00a
posts1
users1
websitepython.org

1 user in discussion

David Rushby: 1 post

People

Translate

site design / logo © 2022 Grokbase