39 Commits

Author SHA1 Message Date
Alessandre Laguierce
f6b03da814 fix: resolve segfaults 2025-04-02 19:21:55 +02:00
Alessandre Laguierce
7f1aa05f3e feat: better scheduling for fibo 2025-04-02 15:24:30 +02:00
Alessandre Laguierce
3475ce4e8f feat: add cache for last_thread_t structure 2025-04-02 08:35:57 +02:00
Martin Eyben
9b2e156869 fix[mutex]: valgrind uninitialised values 2025-03-28 14:42:15 +01:00
Martin Eyben
34c98beaea Merge branch 'mutex' 2025-03-28 14:39:21 +01:00
Nemo D'ACREMONT
d0f714c5e1
feat: add mutex 2025-03-28 14:02:44 +01:00
Martin Eyben
40ed1bf6a7 fix: compilation 2025-03-28 10:05:22 +01:00
Alessandre Laguierce
fe48f0d61b feat: correct few things to converge to Faverge's happiness 2025-03-28 09:36:08 +01:00
Alessandre Laguierce
177e8807c5 feat: save freed thread to not realloc after 2025-03-27 18:03:14 +01:00
Alessandre Laguierce
efaddc4f99 fix: initialize value for main thread 2025-03-25 19:23:14 +01:00
Alessandre Laguierce
16a02f00ab fix: valgrind for deadlocking 2025-03-25 19:20:33 +01:00
Martin Eyben
f6b199d601 feat: add deadlock prevention, still a valgrind issue when returning EDEADLCK 2025-03-25 13:52:50 +01:00
Martin Eyben
f6a78b3516 feat: add deadlock verification 2025-03-25 10:35:02 +01:00
Martin Eyben
aece33c73b fix: typo 2025-03-25 00:26:20 +01:00
Martin Eyben
25d2e181e1 fix: on join check if the thread is not waiting the current thread 2025-03-24 15:21:22 +01:00
Alessandre Laguierce
bf8e6e9d0d feat: reduce memset size 2025-03-24 09:12:41 +01:00
Alessandre Laguierce
c45750b0af feat: make stack last field 2025-03-24 09:01:09 +01:00
Alessandre Laguierce
a4cb6bcdba feat: use a single allocation per entry 2025-03-23 20:19:23 +01:00
Alessandre Laguierce
f542af82d1 fix: single variable was used twice at the same time for two different values 2025-03-23 18:02:17 +01:00
Alessandre Laguierce
2df30423dd perf: better performances before using two lists 2025-03-23 17:35:49 +01:00
Alessandre Laguierce
c3839b140b docs: add comments 2025-03-22 20:15:38 +01:00
Alessandre Laguierce
0b068a07de feat: call clear_context in doubt 2025-03-22 19:06:12 +01:00
Alessandre Laguierce
42cd0976ce fix: deregister valgrind stack at the end 2025-03-22 19:03:47 +01:00
Alessandre Laguierce
290967d9db feat: free all dynamic allocated stacks at the end 2025-03-22 19:00:24 +01:00
Alessandre Laguierce
987e137377 feat: begin rewrite 2025-03-21 20:38:08 +01:00
Martin Eyben
c5c1b74906 fix: use a real fifo for yield 2025-03-21 17:44:35 +01:00
damien DELPY
9e02e4ef67
fix(clang): revert clang on thread. 2025-03-21 16:15:25 +01:00
damien DELPY
93ad044bb1
fix(clang): format thread files. 2025-03-21 15:19:28 +01:00
Alessandre Laguierce
4829d28f4a Stop trolling, go back to a normal time. 2025-03-21 14:49:57 +01:00
Alessandre Laguierce
30d0c291dc Revert to show 0.000029 on the leaderboard at 2pm 2025-03-21 08:49:45 +01:00
Alessandre Laguierce
7568525a4c feat: better passive waiting 2025-03-21 08:43:57 +01:00
Alessandre Laguierce
9c586b1fba fix: return in noreturn function 2025-03-20 21:27:37 +01:00
Alessandre Laguierce
019e9b257b fix: MORE VALGRIND 2025-03-20 21:23:49 +01:00
Alessandre Laguierce
544aefb1f9 fix: valgrind-friendly <3 2025-03-20 20:49:50 +01:00
Alessandre Laguierce
f5b3a7a87e feat: first version, just want to beat M. Faverge on the leaderboard for the first benchmark 2025-03-20 19:43:00 +01:00
Alessandre Laguierce
1417cb8973 fix: correctly compile with pthreads 2025-03-20 16:15:39 +01:00
Martin Eyben
8abf988045 fix[debug]: remove yield trace 2025-03-14 18:04:41 +01:00
Martin Eyben
70325e97ba feat[thread]: add mutex 2025-03-14 18:01:19 +01:00
Martin Eyben
b26dc40079 feat[pthread]: implement with thread with pthread lib 2025-03-14 17:55:57 +01:00