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
Gonzalo Diethelm
06d4b0411b
Cleaned up FAQ doc
2020-07-20 18:06:32 +02:00
Gonzalo Diethelm
fe540f09b9
Cleaned up design doc
2020-07-20 18:00:26 +02:00
Manos
0e1f9e8f17
Merge pull request #75 from gymbombom/master
...
thpool.c:458 ~ 464
2020-05-25 14:20:46 +01:00
Manos
73534f92ad
Merge pull request #84 from aneesh-joshi/master
...
fix typo: `untill` -> `until`
2019-12-16 21:21:09 +00:00
Aneesh Joshi
12656655c7
fix typo: untill
-> until
2019-12-16 14:52:37 -05:00
Manos
324ddaaac5
Merge pull request #82 from Rhythmicc/patch-2
...
Fix warning at line 285.
2019-11-22 10:50:02 +00:00
RhythmLian
71f5bc9613
Fix warning at line 285.
...
It may can’t catch the malloc error.
2019-11-22 08:23:27 +08:00
Erik Janssen
35a6d7427b
Fixed wrong check for malloc result, as found with cppcheck
2018-12-06 21:35:50 +01:00
andamiro
f0d75f72eb
thpool.c:458 ~ 464
...
modify Remark Message
2018-11-30 17:15:58 +09:00
shaun
ebe78873c0
Update example.c
...
without the wait the 40 tasks will not have time to complete
2017-12-30 01:26:31 -05:00
Manos
430251cb65
Make README less melodramatic
2017-04-24 19:27:54 +01:00
Manos
cfe15cf409
Make README less melodramatic
2017-04-24 19:26:50 +01:00
Manos
2dfd186876
Make README less melodramatic
2017-04-24 19:24:58 +01:00
Manos
2a0e8b7ebb
Update README.md
2017-04-18 16:06:02 +01:00
Manos
9632ca028a
Update README.md
2017-04-18 16:05:34 +01:00
Johan
0f9b66306b
Merge pull request #49 from GandaG/gcc-warnings
...
Fix gcc warnings.
2017-01-29 18:14:42 +00:00
Daniel Nunes
29f1537116
Commented the warning supression in thpool_resume.
2017-01-29 18:10:45 +00:00
Pithikos
a3916021c8
Add POSIX macro to remove any warnings under strict C compilation
2017-01-29 09:21:05 +00:00
Pithikos
e108ee5ab6
Small refactoring without affecting functionality
2017-01-29 09:19:16 +00:00
Daniel Nunes
3ac7d25722
Fix unused arg gcc warnings.
2017-01-29 02:16:33 +00:00
Johan
779938e54d
Small fix to contribution section
2017-01-28 10:17:12 +00:00
Johan
265f96309b
Add contribution guidelines
2017-01-28 10:16:01 +00:00