Skip to content
Snippets Groups Projects
Commit 59f06997 authored by Lyude Paul's avatar Lyude Paul
Browse files

rust: hrtimer: Add TimerCallbackContext and ::forward()


With Linux's hrtimer API, certain functions require we either acquire
proper locking to call specific methods - or that we call said methods from
the context of the timer callback. hrtimer_forward() is one of these
functions, so we start by adding a new TimerCallbackContext type which
provides a way of calling these methods that is inaccessible outside of
hrtimer callbacks.

Signed-off-by: Lyude Paul's avatarLyude Paul <lyude@redhat.com>
parent cfbf417a
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment