Commit Graph

271 Commits

Author SHA1 Message Date
Manos
4eb5a69a43 Fix badge 2023-12-18 16:40:31 +01:00
Manos
8c9e0ea8d7 Merge Lambda0x00 master 2023-12-18 15:39:03 +01:00
Manos
9577c67e92
Merge pull request #128 from dunglas/fix/SA_ONSTACK_declaration
fix: ensure that SA_ONSTACK is declared
2023-12-18 15:36:48 +01:00
Manos
6b45b0746c Fix badge 2023-12-18 15:20:15 +01:00
Manos
29e85feeea Merge ghost commits 2023-12-18 15:04:46 +01:00
Manos
a4cdd6976a Merge branch 'master' of github.com:lambda0x00/C-Thread-Pool into lambda0x00-master 2023-12-18 15:01:28 +01:00
Manos
40cd44cf89 Fix badge 2023-12-18 14:29:07 +01:00
Manos
c5ba1c0f64
Merge pull request #117 from dunglas/ci/gha
ci: switch to GitHub Actions
2023-12-18 14:09:57 +01:00
Kévin Dunglas
d3f1967cd3
fix: ensure that SA_ONSTACK is declared 2023-12-18 13:51:48 +01:00
Kévin Dunglas
222340137b
Reapply "fix: set the SA_ONSTACK flag"
This reverts commit 81b76df72e.
2023-12-18 13:51:48 +01:00
Manos
b80f3b77d6
Merge pull request #127 from Pithikos/revert-116-fix/SA_ONSTACK
Revert "fix: set the SA_ONSTACK flag"
2023-12-18 13:42:24 +01:00
Manos
81b76df72e
Revert "fix: set the SA_ONSTACK flag" 2023-12-18 10:48:01 +00:00
Manos
6c9410df87
Merge pull request #116 from dunglas/fix/SA_ONSTACK
fix: set the SA_ONSTACK flag
2023-12-18 11:42:46 +01:00
Manos
5ee62a1cd4
Merge pull request #122 from asvrada/patch-1
Fix typo in thpool.c
2023-12-18 11:38:15 +01:00
Manos
89f4d259fa
Merge pull request #126 from dunglas/fix/crash-on-mac
fix: properly destroy mutex during reset
2023-12-18 11:36:35 +01:00
Manos
7777292d76
Merge pull request #124 from dunglas/feat/configure-thread-name
feat: make the thread name configurable
2023-12-18 11:28:33 +01:00
Kévin Dunglas
96146f08b4
fix: properly destroy mutex during reset 2023-12-18 01:07:28 +01:00
Kévin Dunglas
734bdf4d95
feat: make the thread name configurable 2023-10-06 18:29:00 +02:00
Zijie Wu
59683c790d
Fix typo 2023-06-27 15:44:47 -07:00
Manos
3669b9bdf3
Merge pull request #118 from pgrimaud/master
docs: fix typos
2023-01-25 23:02:51 +00:00
Pierre Grimaud
3fe36a50af
docs: fix typos 2022-12-25 23:50:33 +01:00
Kévin Dunglas
22092e7729
indentation 2022-12-19 22:06:56 +01:00
Kévin Dunglas
ca34e53025
use apt-get instead of apt 2022-12-19 21:47:43 +01:00
Kévin Dunglas
4ea14a25f1
install Valgrind 2022-12-19 21:41:43 +01:00
Kévin Dunglas
3f826f040e
add missing checkout action 2022-12-19 21:38:26 +01:00
Kévin Dunglas
78336465c8
ci: switch to GitHub Actions 2022-12-19 21:36:19 +01:00
Kévin Dunglas
b2f44889cb
fix: set the SA_ONSTACK flag 2022-12-19 17:11:37 +01:00
Mano
b2827e9960 Thread-heavy tests should not parallelize too much 2022-12-01 09:53:17 +00:00
Mano
4f4082e817 Run memleak tests in parallel where possible 2022-12-01 01:19:32 +00:00
Mano
230dd7e643 Increase sleep time to 1.0 again to solve false negatives 2022-12-01 01:13:03 +00:00
Mano
bd7fdc0b69 Re-increase no_work sleep to give time for thpool to be destroyed 2022-12-01 00:34:02 +00:00
Mano
8f1bcb1aa4 Split test_thread_free_multi into 2 separate funcs 2022-12-01 00:26:38 +00:00
Mano
1ff0984eea Reduce memleaks tests time by ~30% 2022-12-01 00:01:08 +00:00
Mano
094a64e3d9 Run tests in parallel 2022-11-30 23:47:27 +00:00
Mano
3853d02bce Increase timeout for tests 2022-11-30 21:54:01 +00:00
Manos
0c6dfd0818
Merge pull request #105 from zlrs/fix/limit_thread_name_lenth_to_16
fix: limit thread name length to 16bytes
2022-11-30 12:31:19 +00:00
Manos
1bbb03ec52
Merge pull request #113 from dunglas/feat/mac-os-compat
feat: compatiblity with Mac OS X
2022-11-30 12:30:03 +00:00
Kévin Dunglas
2ea22f1271
feat: compatiblity with Mac OS X 2022-09-30 22:42:10 +02:00
zlrs
3f46454ca9 fix: limit thread name length to 16bytes 2021-04-29 15:16:58 +08:00
Andrew Hicks
3cff334538
Fix error in FreeBSD 2021-03-16 20:58:16 -04:00
Manos
b259a6e29a
Merge pull request #97 from timgates42/bugfix_typo_success
docs: fix simple typo, successs -> success
2020-12-07 12:58:29 +00:00
Tim Gates
3d8745b98c
docs: fix simple typo, successs -> success
There is a small typo in thpool.h.

Should read `success` rather than `successs`.
2020-12-07 21:51:28 +11:00
Manos
66fae216b7
Merge pull request #94 from nil0x42/patch-1
Use safe snprintf() instead of sprintf()
2020-09-28 00:24:43 +01:00
nil0x42
5fbe481965
Use safe snprintf() instead of sprintf()
The use of sprintf is considered unsafe. And besides being in this case not vulnerable, CI services such as deepcode.ai will send an annoying alert for projects using thpool, as in this example: 47376326b7/_/%2Fsrc%2Fthpool.c/cpp%2Fdc%2FBufferOverflowUnsafeFunction/321/code

The buffer is also bigger than needed: even if `thread_p->id` were to be an uint64_max, the generated string would still fit in 31 bytes (`thread-pool-9223372036854775807`); so buffer was set to 32 bytes instead of 128
2020-09-27 23:06:38 +00:00
Manos S.H
25fa679eca Add info for becoming collaborator 2020-07-21 18:50:34 +01:00
Manos
a7cd78eaf5
Merge pull request #91 from gonzus/gonzus/fix-function-pointer-casts
Fix casting of function pointers
2020-07-21 11:32:35 +01:00
Gonzalo Diethelm
f8e457b3b4
Merge branch 'master' into gonzus/fix-function-pointer-casts 2020-07-21 10:51:40 +02:00
Gonzalo Diethelm
b628c3e93d
Merge pull request #66 from shaunsauve/patch-1
Update example.c
2020-07-21 10:48:48 +02:00
Gonzalo Diethelm
fa3e89f419
Merge pull request #76 from janssen70/cppcheck-fix
Fixed wrong check for malloc result, as found with cppcheck
2020-07-21 10:47:49 +02:00
Manos S.H
b4f1a6494e Make CI faster 2020-07-21 00:54:13 +01:00