Home
last modified time | relevance | path

Searched refs:threadID (Results 1 – 25 of 55) sorted by relevance

123

/external/skia/src/core/
DSkSharedMutex.cpp81 bool find(SkThreadID threadID) const { in find()
83 if (t == threadID) return true; in find()
89 bool tryAdd(SkThreadID threadID) { in tryAdd() argument
91 if (t == threadID) return false; in tryAdd()
93 fThreadIDs.append(1, &threadID); in tryAdd()
97 bool tryRemove(SkThreadID threadID) { in tryRemove() argument
99 if (fThreadIDs[i] == threadID) { in tryRemove()
129 SkThreadID threadID(SkGetThreadID()); in acquire() local
135 if (!fWaitingExclusive->tryAdd(threadID)) { in acquire()
136 SkDEBUGFAILF("Thread %lx already has an exclusive lock\n", threadID); in acquire()
[all …]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/VirtualMachine/
DAllThreadsTest.java68 long threadID; in testAllThreads003() local
79 threadID = reply.getNextValueAsThreadID(); in testAllThreads003()
80 threadName = debuggeeWrapper.vmMirror.getThreadName(threadID); in testAllThreads003()
85 packet.setNextValueAsReferenceTypeID(threadID); in testAllThreads003()
93 logWriter.println("\t" + threadID + " " in testAllThreads003()
126 long threadID; in testAllThreads002() local
139 threadID = reply.getNextValueAsThreadID(); in testAllThreads002()
140 threadName = debuggeeWrapper.vmMirror.getThreadName(threadID); in testAllThreads002()
145 packet.setNextValueAsReferenceTypeID(threadID); in testAllThreads002()
153 logWriter.println("\t" + threadID + " " in testAllThreads002()
[all …]
DSuspendTest.java66 long threadID; in testSuspend001() local
77 threadID = reply.getNextValueAsThreadID() ; in testSuspend001()
78 threadName = debuggeeWrapper.vmMirror.getThreadName(threadID); in testSuspend001()
83 packet.setNextValueAsReferenceTypeID(threadID); in testSuspend001()
91 logWriter.println("\t" + threadID + " " in testSuspend001()
97 printErrorAndFail("thread ID=" + threadID + "; name=\"" in testSuspend001()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/StackFrame/
DGetValuesTest.java83 long threadID = getThreadID(); in testGetValues003_ThreadNotSuspendedError() local
87 packet.setNextValueAsThreadID(threadID); in testGetValues003_ThreadNotSuspendedError()
103 long threadID = getThreadID(); in testGetValues004_InvalidFrameIDError() local
106 jdwpSuspendThread(threadID); in testGetValues004_InvalidFrameIDError()
112 packet.setNextValueAsThreadID(threadID); in testGetValues004_InvalidFrameIDError()
128 long threadID = getThreadID(); in testGetValues005_InvalidSlotError() local
131 jdwpSuspendThread(threadID); in testGetValues005_InvalidSlotError()
133 FrameInfo frameInfo = findFrameInfo(threadID); in testGetValues005_InvalidSlotError()
153 packet.setNextValueAsThreadID(threadID); in testGetValues005_InvalidSlotError()
168 long threadID = debuggeeWrapper.vmMirror.getThreadID(testedThreadName); in examineGetValues() local
[all …]
DSetValuesTest.java84 long threadID = getThreadID(); in testSetValues003_ThreadNotSuspendedError() local
88 packet.setNextValueAsThreadID(threadID); in testSetValues003_ThreadNotSuspendedError()
104 long threadID = getThreadID(); in testSetValues004_InvalidFrameIDError() local
107 jdwpSuspendThread(threadID); in testSetValues004_InvalidFrameIDError()
113 packet.setNextValueAsThreadID(threadID); in testSetValues004_InvalidFrameIDError()
131 long threadID = getThreadID(); in testSetValues005_InvalidSlotError() local
134 jdwpSuspendThread(threadID); in testSetValues005_InvalidSlotError()
136 FrameInfo frameInfo = findFrameInfo(threadID); in testSetValues005_InvalidSlotError()
156 packet.setNextValueAsThreadID(threadID); in testSetValues005_InvalidSlotError()
172 long threadID = debuggeeWrapper.vmMirror.getThreadID(testedThreadName); in examineGetValues() local
[all …]
DJDWPStackFrameTestCase.java91 protected int jdwpGetFrameCount(long threadID) { in jdwpGetFrameCount() argument
95 packet.setNextValueAsThreadID(threadID); in jdwpGetFrameCount()
104 protected FrameInfo[] jdwpGetFrames(long threadID, int startFrame, int length) { in jdwpGetFrames() argument
108 packet.setNextValueAsThreadID(threadID); in jdwpGetFrames()
169 protected String jdwpGetThreadName(long threadID) { in jdwpGetThreadName() argument
173 packet.setNextValueAsThreadID(threadID); in jdwpGetThreadName()
182 protected void jdwpSuspendThread(long threadID) { in jdwpSuspendThread() argument
186 packet.setNextValueAsThreadID(threadID); in jdwpSuspendThread()
192 protected void jdwpResumeThread(long threadID) { in jdwpResumeThread() argument
196 packet.setNextValueAsThreadID(threadID); in jdwpResumeThread()
[all …]
DJDWPStackTraceBaseTest.java89 long threadID = debuggeeWrapper.vmMirror.getThreadID(testedThreadName); in getThreadID() local
90 logWriter.println("=> testedThreadID = " + threadID); in getThreadID()
91 if (threadID == -1) { in getThreadID()
94 return threadID; in getThreadID()
97 protected FrameInfo findFrameInfo(long threadID) { in findFrameInfo() argument
99 int frameCount = jdwpGetFrameCount(threadID); in findFrameInfo()
103 FrameInfo[] frameIDs = jdwpGetFrames(threadID, 0, frameCount); in findFrameInfo()
DJDWPStackFrameAccessTest.java402 protected FrameInfo getFrameInfo(long threadID, long classID, long methodID) { in getFrameInfo() argument
403 int frameCount = jdwpGetFrameCount(threadID); in getFrameInfo()
408 FrameInfo[] frames = jdwpGetFrames(threadID, 0, frameCount); in getFrameInfo()
430 protected Value getVariableValue(long threadID, long frameID, int slot, byte tag) { in getVariableValue() argument
431 logWriter.println(" Send StackFrame::GetValues: threadID=" + threadID + in getVariableValue()
439 packet.setNextValueAsThreadID(threadID); in getVariableValue()
474 protected void setVariableValue(long threadID, long frameID, int slot, Value newValue) { in setVariableValue() argument
475 logWriter.println(" Send StackFrame::SetValues: threadID=" + threadID + in setVariableValue()
482 packet.setNextValueAsThreadID(threadID); in setVariableValue()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ThreadReference/
DFrameCountTest.java63 long threadID = debuggeeWrapper.vmMirror.getThreadID(testedThreadName); in testFrameCount001() local
64 logWriter.println("==> threadID = " + threadID); in testFrameCount001()
65 debuggeeWrapper.vmMirror.suspendThread(threadID); in testFrameCount001()
67 int expectedCount = getFramesCount(threadID); in testFrameCount001()
73 packet.setNextValueAsThreadID(threadID); in testFrameCount001()
84 debuggeeWrapper.vmMirror.resumeThread(threadID); in testFrameCount001()
88 private int getFramesCount(long threadID) { in getFramesCount() argument
98 packet.setNextValueAsThreadID(threadID); in getFramesCount()
104 logWriter.println("\tthreadID=" + threadID in getFramesCount()
DFramesTest.java45 long threadID; field in FramesTest
77 threadID = debuggeeWrapper.vmMirror.getThreadID(testedThreadName); in testFrames005()
78 logWriter.println("==> threadID = " + threadID); in testFrames005()
79 debuggeeWrapper.vmMirror.suspendThread(threadID); in testFrames005()
110 debuggeeWrapper.vmMirror.resumeThread(threadID); in testFrames005()
131 threadID = debuggeeWrapper.vmMirror.getThreadID(testedThreadName); in testFrames004()
132 logWriter.println("==> threadID = " + threadID); in testFrames004()
133 debuggeeWrapper.vmMirror.suspendThread(threadID); in testFrames004()
165 debuggeeWrapper.vmMirror.resumeThread(threadID); in testFrames004()
186 threadID = debuggeeWrapper.vmMirror.getThreadID(testedThreadName); in testFrames003()
[all …]
DStatusTest.java62 long threadID = in testStatus002() local
65 debuggeeWrapper.vmMirror.suspendThread(threadID); in testStatus002()
71 packet.setNextValueAsThreadID(threadID); in testStatus002()
79 logWriter.println("\t" + threadID + " " in testStatus002()
101 debuggeeWrapper.vmMirror.resumeThread(threadID); in testStatus002()
121 long threadID = in testStatus001() local
128 packet.setNextValueAsThreadID(threadID); in testStatus001()
136 logWriter.println("\t" + threadID + " " in testStatus001()
DSuspendCountTest.java112 long threadID = allThreadIDReply.getNextValueAsThreadID(); in testSuspendCount001() local
113 allThreadsIDs[i] = threadID; in testSuspendCount001()
116 threadName = debuggeeWrapper.vmMirror.getThreadName(threadID); in testSuspendCount001()
119 ("==> WARNING: Can NOT get thread name for threadID = " + threadID); in testSuspendCount001()
126 testedThreadsIDs[k] = threadID; in testSuspendCount001()
135 logWriter.println("\n==> Check for Thread: threadID = " + threadID in testSuspendCount001()
142 packet.setNextValueAsThreadID(threadID); in testSuspendCount001()
164 packet.setNextValueAsThreadID(threadID); in testSuspendCount001()
179 packet.setNextValueAsThreadID(threadID); in testSuspendCount001()
197 packet.setNextValueAsThreadID(threadID); in testSuspendCount001()
[all …]
DNameTest.java58 long threadID; in testName001() local
62 threadID = reply.getNextValueAsThreadID(); in testName001()
66 packet.setNextValueAsThreadID(threadID); in testName001()
72 logWriter.println("\tthreadID = " + threadID + " threadName = " in testName001()
75 printErrorAndFail("Empty name for thread with ID=" + threadID); in testName001()
DSuspendTest.java99 long threadID = allThreadIDReply.getNextValueAsThreadID(); in testSuspend001() local
102 threadName = debuggeeWrapper.vmMirror.getThreadName(threadID); in testSuspend001()
105 ("==> WARNING: Can NOT get thread name for threadID = " + threadID); in testSuspend001()
111 testedThreadsIDs[k] = threadID; in testSuspend001()
120 logWriter.println("\n==> Check for Thread: threadID = " + threadID in testSuspend001()
128 packet.setNextValueAsThreadID(threadID); in testSuspend001()
139 packet.setNextValueAsReferenceTypeID(threadID); in testSuspend001()
165 int resumeErr = debuggeeWrapper.vmMirror.resumeThread(threadID).getErrorCode(); in testSuspend001()
DThreadGroupTest.java67 long threadID, groupID; in testThreadGroup001() local
72 threadID = reply.getNextValueAsThreadID(); in testThreadGroup001()
78 packet.setNextValueAsThreadID(threadID); in testThreadGroup001()
86 threadName = debuggeeWrapper.vmMirror.getThreadName(threadID); in testThreadGroup001()
88 logWriter.println("\tthreadID=" + threadID in testThreadGroup001()
DStopTest.java63 long threadID = in testStop001() local
65 logWriter.println("testStop001: ID of the tested thread to Stop = " + threadID); in testStop001()
96 packet.setNextValueAsThreadID(threadID); in testStop001()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/
DFrame.java37 protected long threadID; field in Frame
49 threadID = -1; in Frame()
67 Frame(long threadID, long id, Location location, ArrayList<Variable> vars) { in Frame() argument
68 this.threadID = threadID; in Frame()
80 return threadID; in getThreadID()
89 public void setThreadID(long threadID) { in setThreadID() argument
90 this.threadID = threadID; in setThreadID()
158 String string = "Frame: id=" + id + ", threadID=" + threadID in toString()
184 if (this.threadID != frame.threadID || this.id != frame.id in equals()
DVmMirror.java488 public ReplyPacket resumeThread(long threadID) { in resumeThread() argument
493 commandPacket.setNextValueAsThreadID(threadID); in resumeThread()
515 public ReplyPacket suspendThread(long threadID) { in suspendThread() argument
520 commandPacket.setNextValueAsThreadID(threadID); in suspendThread()
669 long threadID = -1; in getThreadID() local
683 threadID = thread; in getThreadID()
688 return threadID; in getThreadID()
729 public String getThreadName(long threadID) { in getThreadName() argument
734 commandPacket.setNextValueAsThreadID(threadID); in getThreadName()
746 public int getThreadStatus(long threadID) { in getThreadStatus() argument
[all …]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ThreadGroupReference/
DChildrenTest.java64 long threadID = debuggeeWrapper.vmMirror.getThreadID(NameDebuggee.TESTED_THREAD); in testChildren001() local
65 logWriter.println("==> testedThreadID = " + threadID); in testChildren001()
75 packet.setNextValueAsThreadID(threadID); in testChildren001()
105 if (threadID != childThreadID) { in testChildren001()
107 logWriter.println("## Expected ID of child thread = " + threadID); in testChildren001()
108 assertEquals("Invalid ID of child thread,", threadID, childThreadID); in testChildren001()
179 long threadID = debuggeeWrapper.vmMirror.getThreadID(NameDebuggee.TESTED_THREAD); in testChildren_InvalidThreadGroup() local
181 checkCommandError(threadID, JDWPConstants.Error.INVALID_THREAD_GROUP); in testChildren_InvalidThreadGroup()
DNameTest.java60 long threadID = debuggeeWrapper.vmMirror.getThreadID(NameDebuggee.TESTED_THREAD); in testName001() local
69 packet.setNextValueAsThreadID(threadID); in testName001()
77 logWriter.println("\tthreadID=" + threadID in testName001()
134 long threadID = debuggeeWrapper.vmMirror.getThreadID(NameDebuggee.TESTED_THREAD); in testName001_InvalidThreadGroup() local
136 checkCommandError(threadID, JDWPConstants.Error.INVALID_THREAD_GROUP); in testName001_InvalidThreadGroup()
DParentTest.java61 long threadID = debuggeeWrapper.vmMirror.getThreadID(NameDebuggee.TESTED_THREAD); in testParent001() local
70 packet.setNextValueAsThreadID(threadID); in testParent001()
144 long threadID = debuggeeWrapper.vmMirror.getThreadID(NameDebuggee.TESTED_THREAD); in testParent_InvalidThreadGroup() local
146 checkCommandError(threadID, JDWPConstants.Error.INVALID_THREAD_GROUP); in testParent_InvalidThreadGroup()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/EventModifiers/
DInstanceOnlyModifierTest.java248 long threadID = eventThread.getThreadID(); in checkThisObject() local
249 assertTrue(threadID != 0); in checkThisObject()
253 logWriter.println("Search the frame ID of the event location in thread " + threadID); in checkThisObject()
255 int framesCount = debuggeeWrapper.vmMirror.getFrameCount(threadID); in checkThisObject()
256 ReplyPacket reply = debuggeeWrapper.vmMirror.getThreadFrames(threadID, in checkThisObject()
258 checkReplyPacket(reply, "Failed to get frames for thread " + threadID); in checkThisObject()
271 long thisObjectID = debuggeeWrapper.vmMirror.getThisObject(threadID, in checkThisObject()
/external/python/cpython2/Python/
Dthread_nt.h130 unsigned threadID; in PyThread_start_new_thread() local
146 bootstrap, obj, 0, &threadID); in PyThread_start_new_thread()
152 0, &threadID); in PyThread_start_new_thread()
169 threadID = (unsigned)-1; in PyThread_start_new_thread()
177 return (long) threadID; in PyThread_start_new_thread()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/
DThreadEndTest.java81 long threadID = ((Event_THREAD_DEATH)parsedEvents[0]).getThreadID(); in testThreadEndEvent001() local
82 logWriter.println("=> threadID = " + threadID); in testThreadEndEvent001()
83 String threadName = debuggeeWrapper.vmMirror.getThreadName(threadID); in testThreadEndEvent001()
DThreadStartTest.java87 long threadID = ((Event_THREAD_START)parsedEvents[0]).getThreadID(); in testThreadStartEvent001() local
88 logWriter.println("=> threadID = " + threadID); in testThreadStartEvent001()
89 String threadName = debuggeeWrapper.vmMirror.getThreadName(threadID); in testThreadStartEvent001()

123