1
0
Fork 0
mirror of https://gitlab.com/niansa/cosched.git synced 2025-03-06 20:53:26 +01:00
Commit graph

34 commits

Author SHA1 Message Date
niansa
70c28d90ac Changed to CC0 LICENSE 2024-03-18 07:36:14 +00:00
niansa
671bdb57be Improved LockGuard nodiscard 2023-05-22 23:57:49 +02:00
niansa
fddceb7171 Improved mutex heavily 2023-05-22 23:55:59 +02:00
niansa
d12406aba9 Pop mutex unlock queue properly 2023-05-22 22:58:37 +02:00
niansa
3649712059 Unlock mutex properly 2023-05-22 22:55:39 +02:00
niansa
ecacf7f9f7 Implemented experimental async mutex 2023-05-22 22:46:30 +02:00
niansa
9d1047be54 Build as shared library 2023-05-16 20:17:10 +02:00
niansa
2f43b6d41b Compile as PIE 2023-05-16 19:23:53 +02:00
niansa
1acf3f88a1 Fixed typo 2023-05-10 15:43:56 +02:00
niansa
05eb25ce59 Removed stray backtick 2023-05-10 15:18:44 +02:00
niansa
a7a6e580b4 Added more elements to Priority enum 2023-05-10 15:17:49 +02:00
niansa
abfddec29c Added get_state_string() 2023-05-10 14:46:25 +02:00
niansa
e38e792adc Fixed priority being unsigned 2023-05-06 10:35:36 +02:00
niansa
666a9aee3f Fixed warnings and added Task::is_dead() 2023-05-06 01:13:50 +02:00
niansa
32bfe1dbac Resource deadlock avoided 2023-05-05 21:00:00 +02:00
niansa
a95878f505 Fixed typo 2023-05-05 18:43:27 +02:00
niansa
f7592dc8d1 Removed some locks sind Scheduler isn't thread-safe anyways 2023-05-05 18:42:36 +02:00
83e375a1e0 Fixed delete_task deleting running tasks 2023-05-05 15:22:33 +02:00
c016ccd672 Minor reworks and fixed lambda lifetime in ScheduledThread 2023-05-05 12:55:48 +02:00
78f710d0f5 Removed debug leftovers 2023-05-05 10:25:50 +02:00
3def9bb02c Replaced libasync with basic-coro
We don't need full-blown libasync here...
2023-05-05 10:24:05 +02:00
niansa
860e097972 Fixed ScheduledThread::main_loop keeping queue lock for too long 2023-05-04 20:36:04 +02:00
niansa
6a225e88df Renamed ScheduledThread::enqueue to create_task 2023-05-04 19:50:47 +02:00
niansa
19b29577a1 Improved ScheduledThread::enqueue 2023-05-04 19:49:36 +02:00
e53d6c2c7e Moved ScheduledThread::main_loop into another file 2023-05-04 15:09:30 +02:00
1e3e3c7786 Added some hints to ScheduledThread functions 2023-05-04 15:07:56 +02:00
637889421a Implemented ScheduledThread 2023-05-04 15:06:26 +02:00
c84bb0d571 Added Scheduler::run_once() 2023-05-04 14:27:16 +02:00
698bc16ecd Don't build test 2023-05-04 14:09:53 +02:00
3714abde1c Allow reading current task from Task::current() 2023-05-04 14:09:27 +02:00
bf5033f6bc Changed the way termination is handled 2023-05-04 11:27:37 +02:00
eba003a721 Simplified states and added suspension 2023-05-04 11:04:02 +02:00
niansa
31541ce918 Add LICENSE 2023-05-04 08:40:12 +00:00
dbc07373d4 Initial commit 2023-05-04 10:38:09 +02:00