resetting old scheduling policy correctly in free() hook
This commit is contained in:
@@ -463,7 +463,7 @@ void free_hook(void *ptr, const void *caller)
|
||||
}
|
||||
|
||||
install_hooks();
|
||||
pthread_setschedparam(thread_id, oldpolicy, ¶ms);
|
||||
pthread_setschedparam(thread_id, oldpolicy, &oldparams);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user