x86-64: delete fp_regs_32 from asm-x86.inc - this is not really
[ajla.git] / timer.h
blob9c65a3379c4c59762a4459de9cc72e64fd1d2b4c
1 /*
2 * Copyright (C) 2024 Mikulas Patocka
4 * This file is part of Ajla.
6 * Ajla is free software: you can redistribute it and/or modify it under the
7 * terms of the GNU General Public License as published by the Free Software
8 * Foundation, either version 3 of the License, or (at your option) any later
9 * version.
11 * Ajla is distributed in the hope that it will be useful, but WITHOUT ANY
12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along with
16 * Ajla. If not, see <https://www.gnu.org/licenses/>.
19 #ifndef AJLA_TIMER_H
20 #define AJLA_TIMER_H
22 #include "thread.h"
24 #if defined(OS_OS2) || defined(OS_WIN32)
25 #define TIMER_THREAD
26 #endif
28 bool timer_register_wait(ajla_time_t mt, mutex_t **mutex_to_lock, struct list *list_entry, ajla_error_t *err);
29 #ifndef TIMER_THREAD
30 uint32_t timer_wait_now(void);
31 void timer_check_all(void);
32 #endif
34 void timer_init(void);
35 void timer_done(void);
37 #endif