OSYSTEM: extended installTimerProc() with timer ID parameter
This commit is contained in:
parent
e72c2fae88
commit
78f1ea7690
20 changed files with 38 additions and 36 deletions
|
@ -110,7 +110,7 @@ TestExitStatus MiscTests::testDateTime() {
|
|||
|
||||
TestExitStatus MiscTests::testTimers() {
|
||||
int valToModify = 0;
|
||||
if (g_system->getTimerManager()->installTimerProc(timerCallback, 100000, &valToModify)) {
|
||||
if (g_system->getTimerManager()->installTimerProc(timerCallback, 100000, &valToModify, "testbedTimer")) {
|
||||
g_system->delayMillis(150);
|
||||
g_system->getTimerManager()->removeTimerProc(timerCallback);
|
||||
|
||||
|
@ -133,7 +133,7 @@ TestExitStatus MiscTests::testMutexes() {
|
|||
|
||||
SharedVars sv = {1, 1, true, g_system->createMutex()};
|
||||
|
||||
if (g_system->getTimerManager()->installTimerProc(criticalSection, 100000, &sv)) {
|
||||
if (g_system->getTimerManager()->installTimerProc(criticalSection, 100000, &sv, "testbedMutex")) {
|
||||
g_system->delayMillis(150);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue