Commit Graph

19 Commits

Author SHA1 Message Date
Quentin Legot
b104bcc6da Fix memory leak 2023-03-22 14:33:56 +01:00
Quentin Legot
b9c329219a Added 2 tests to list.rs, improve semantic and using Default trait instant of function new 2023-03-21 22:40:49 +01:00
Quentin Legot
d3b2d0bac6 List is now a fifo list 2023-03-21 22:03:48 +01:00
Quentin Legot
977cb2bf96 kernel now build
I commented out semaphore code too cause it need to be updated
and having some error cause the compiler to not check for borrow errors
2023-03-16 14:52:53 +01:00
Quentin Legot
fa64d4314d decrease some dependencies 2023-03-15 17:57:53 +01:00
Samy Solhi
6dd0cbcc87 Shadow the hedgehog 2023-03-15 16:51:57 +01:00
Samy Solhi
b22b1dea21 update synch.rs 2023-03-15 16:28:29 +01:00
François Autin
1906ec836c
Moved to reference passing system 2023-03-15 15:20:20 +01:00
François Autin
abb97d17d5
Removed Rc<RefCell<Machine>> 2023-03-15 14:56:05 +01:00
Quentin Legot
c8df1e5053 use of system in parameters in synch 2023-03-15 11:09:34 +01:00
Quentin Legot
88a0b31300 Add thread_finish 2023-03-14 22:01:52 +01:00
François Autin
4ee0c11c56
A few documentation updates 2023-03-14 15:16:40 +01:00
Quentin Legot
7de7f2e007 Fix scheduler switch_to by making a lot of change(use smart pointers in place of lifetime reference) 2023-03-13 21:47:06 +01:00
Quentin Legot
39e26e61bb Add thread_sleep 2023-03-13 20:55:46 +01:00
Quentin Legot
1f54ed35db Implement thread#t_yield() 2023-03-11 14:48:56 +01:00
Quentin Legot
45fea708fc
Changed all reference to thread with an RefCell to enforce mutability 2023-03-10 19:11:16 +01:00
Quentin Legot
26b75ffe8d
Add thread save and restore processor context 2023-03-10 19:11:13 +01:00
Quentin Legot
0c3af96b78
Fix start_thread 2023-03-10 19:04:23 +01:00
Quentin Legot
6820086579
Added thread manager 2023-03-10 19:04:23 +01:00