threadstatemapping2.java
来自「tinyos最新版」· Java 代码 · 共 26 行
JAVA
26 行
package org.python.core;class ThreadStateMapping2 extends ThreadStateMapping { private static ThreadLocal cachedThreadState = new ThreadLocal(); public ThreadState getThreadState(PySystemState newSystemState) { ThreadState ts = (ThreadState)cachedThreadState.get(); if (ts != null) { return ts; } Thread t = Thread.currentThread(); if (newSystemState == null) { Py.writeDebug("threadstate", "no current system state"); //t.dumpStack(); newSystemState = Py.defaultSystemState; } ts = new ThreadState(t, newSystemState); cachedThreadState.set(ts); return ts; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?