mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-12-31 22:58:54 +00:00
tests: Do not explicitly set the thread pointer to NULL
FRR should only ever use the appropriate THREAD_ON/THREAD_OFF semantics. This is espacially true for the functions we end up calling the thread for. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
89748f2704
commit
1a8e5aea78
@ -153,7 +153,6 @@ int main(int argc, char **argv)
|
||||
|
||||
XFREE(MTYPE_TMP, timers[index]->arg);
|
||||
thread_cancel(&timers[index]);
|
||||
timers[index] = NULL;
|
||||
timers_pending--;
|
||||
}
|
||||
|
||||
|
||||
@ -77,7 +77,6 @@ int main(int argc, char **argv)
|
||||
|
||||
index = prng_rand(prng) % SCHEDULE_TIMERS;
|
||||
thread_cancel(&timers[index]);
|
||||
timers[index] = NULL;
|
||||
}
|
||||
|
||||
monotime(&tv_stop);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user