That is, a block of code (function) that now doesn't have to be represented via thread state and registers and such.
也就是说,现在并不通过线程状态和寄存器表示代码块(函数)。
Create a new thread state object belonging to the given interpreter object.
创建一个从属于给定解释器的新线程状态对象。
The global interpreter lock is used to protect the pointer to the current thread state.
全局解释器锁用于保护当前线程状态的指针。
The following example switches the UI culture, but any kind of thread state change could be similarly exposed.
下面的示例切换用户界面区域性,但任何一种线程状态更改都可采用类似的方式公开。
Conversely, when acquiring the lock and restoring the thread state, the lock must be acquired before storing the thread state pointer.
相反,获取锁并恢复线程状态的时候,锁必须在保存状态指针之前就获得。
Thread state (including associated locks).
线程状态(包括相关的锁)。
Thread state (including associated locks).
线程状态(包括相关的锁)。
应用推荐