MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / doLockedIncThread

Function doLockedIncThread

source/test/testCPU.cpp:11038–11044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11036}
11037
11038KThread* doLockedIncThread(U32 numberOfIterationsPerThread) {
11039 KThread* thread = process->createThread();
11040 thread->cpu->clone(cpu); // make sure segments are correct
11041 thread->cpu->reg[1].u32 = numberOfIterationsPerThread;
11042 scheduleThread(thread);
11043 return thread;
11044}
11045
11046void testLockedInc(U32 address) {
11047 const U32 numberOfThreads = 10;

Callers 1

testLockedIncFunction · 0.85

Calls 3

createThreadMethod · 0.80
scheduleThreadFunction · 0.50
cloneMethod · 0.45

Tested by

no test coverage detected