Commit Graph

263 Commits

Author SHA1 Message Date
Manos
d3a5e31426 Garbage 2023-12-18 14:33:20 +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
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
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
Manos S.H
c0f8973cf6 Update badge 2020-07-20 20:39:49 +01:00
Manos S.H
b0d528d7ae Run tests in custom docker container 2020-07-20 20:36:58 +01:00
Manos S.H
3da0ca585e Update circleci config 2020-07-20 19:54:18 +01:00
Manos
6185982d01
Merge pull request #92 from Pithikos/circleci-project-setup
Add .circleci/config.yml
2020-07-20 17:33:03 +01:00
Manos
2a549a6613 Add .circleci/config.yml 2020-07-20 17:31:40 +01:00
Manos
5d07288262
Merge pull request #90 from gonzus/gonzus/clean-up-faq
Cleaned up FAQ doc
2020-07-20 17:25:19 +01:00
Manos
cdcacc8b50
Merge pull request #89 from gonzus/gonzus/clean-up-design
Cleaned up design doc
2020-07-20 17:24:15 +01:00
Gonzalo Diethelm
0012ce22b9 Fix casting of function pointers
Found via -Wpedantic
2020-07-20 18:07:56 +02:00