76 Commits

Author SHA1 Message Date
Nemo D'ACREMONT
e45992ac9d
fix: remove malloc in mutex and update tests 2025-04-04 16:52:14 +02:00
Alessandre Laguierce
1aeb759d77 feat: add fibo strategy 2025-04-02 23:01:32 +02:00
Alessandre Laguierce
bb29b2f53a style: use macro for status 2025-04-02 22:04:56 +02:00
Alessandre Laguierce
589c6551f7 revert: awful time on thor 2025-04-02 19:28:42 +02:00
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
Nemo D'ACREMONT
b25ae2cf69
feat: update logs and wait curl 2025-03-28 15:21:55 +01:00
Nemo D'ACREMONT
8a3381695b
feat: update tests 2025-03-28 14:47:04 +01: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
a43d94dede feat: improve memory allocation by using mimalloc 2025-03-26 09:23:12 +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
ea5017321b feat[debug]: add current thread in trace 2025-03-25 01:25:39 +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
9f8e7740e4 fix: for a green thor 2025-03-24 09:04:10 +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
0527449ed3 fix: divide result by the number of passes done 2025-03-23 20:19:06 +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
Alessandre Laguierce
4bb1bb839a fix: debug was not correctly defined 2025-03-21 19:09:44 +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
damien DELPY
ad460cc15b
fix(clang): format utils files. 2025-03-21 15:18:39 +01:00
damien DELPY
54b8236625
feat(Makefile): adding rules to format the code with clang. 2025-03-21 15:16:57 +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
d3b39be57c feat: keep compiler optimizations and remove debug symbols when not in debug mode 2025-03-21 08:43:16 +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
0228c1c616 fix: debug wasn't correctly disabled 2025-03-20 19:45:28 +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