43 Mutex*
const thread_states_to_destroy_lock;
44 greenlet::cleanup_queue_t thread_states_to_destroy;
47 event_switch(
"switch"),
49 PyExc_GreenletError(
"greenlet.error"),
50 PyExc_GreenletExit(
"greenlet.GreenletExit", PyExc_BaseException),
51 empty_tuple(Require(PyTuple_New(0))),
52 empty_dict(Require(PyDict_New())),
54 thread_states_to_destroy_lock(
new Mutex())
77 greenlet::cleanup_queue_t& q =
const_cast<greenlet::cleanup_queue_t&
>(this->thread_states_to_destroy);
83 greenlet::cleanup_queue_t& q =
const_cast<greenlet::cleanup_queue_t&
>(this->thread_states_to_destroy);