Pithikos
e108ee5ab6
Small refactoring without affecting functionality
2017-01-29 09:19:16 +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
Johan
35f7486784
Merge pull request #47 from GandaG/master
...
Make it possible to disable error message printing
2017-01-24 16:49:09 +00:00
Daniel Nunes
251b1125c6
Moved all error msgs to a central macro.
2017-01-24 15:09:45 +00:00
Daniel Nunes
8aa0c1c1a5
Added macro to disable print statements.
2017-01-22 15:10:45 +00:00
Johan
b2d82ecec3
Merge pull request #46 from GandaG/master
...
Thread name warning should only appear under debug.
2017-01-22 09:42:02 +00:00
Daniel Nunes
7a2f4e76c7
Thread name warning should only appear under debug.
2017-01-22 03:39:15 +00:00
Pithikos
34351715e0
Merge branch 'dweymouth-master'
2017-01-18 10:39:06 +00:00
Pithikos
0b249383d7
Fix whitespace
2017-01-18 10:38:05 +00:00
Pithikos
e906f2fa28
Solve warning about incompatible types
2017-01-18 10:37:04 +00:00
Pithikos
154e5832d9
Resolve conflicts
2017-01-18 10:07:23 +00:00
Pithikos
2ba0bd59fa
Fix whitespace
2017-01-17 19:59:29 +00:00
Pithikos
48ae25d35a
Add API function to get number of working threads
2017-01-17 19:58:44 +00:00
Pithikos
bc95c0ed47
Small stilistic changes
2017-01-17 19:17:59 +00:00
Johan
ea938fcc9e
Merge pull request #41 from bowfin/return-void-extern-C
...
Change worker return type to void; add extern C
2016-09-04 08:05:18 +01:00
bowfin
52552779cc
Change worker return type to void; add extern C
...
1. Worker return type void* is not handled, changing to void.
2. Added extern "C" clause to help in C++ integration.
2016-09-04 00:17:18 -04:00
Johan
dacf776a00
Merge pull request #40 from lyingbug/master
...
Fix error mesage for thpool_init()
2016-07-29 11:38:52 +01:00
xiayula
23275063a4
fix one error msg
2016-07-29 15:36:18 +08:00
Johan
5d2276386f
Merge pull request #34 from 719Ben/master
...
Added LICENSE
2016-03-15 08:01:12 +00:00
Ben Williams
ac10c515da
Fixed owner
2016-03-14 23:56:23 -06:00
Ben Williams
36c4b3f12e
Create LICENSE
2016-03-14 17:19:11 -06:00
Johan
48766ded60
Update README.md
2016-02-16 14:51:51 +00:00
Johan
caac205e57
Merge pull request #32 from MedicineYeh/master
...
Use `prctl` on Linux instead of `pthread_setname_np` for portability.
2016-02-03 11:29:56 +00:00
Medicine Yeh
49e5cbe5af
Use prctl on Linux to follow standard GNU/Linux functions
2016-02-03 18:42:20 +08:00
Medicine Yeh
ff84a85f43
forgot OS dependent macro
2016-02-03 18:29:14 +08:00
Medicine Yeh
a721288235
add _GNU_SOURCE for pthread_setname_np, add NULL check for destroy
...
_GNU_SOURCE: http://man7.org/linux/man-pages/man3/pthread_setname_np.3.html
NULL check: Some programs might get errors while initialization and thus fall to destroy process. This could prevent errors in this situations. Also this check could prevent some rare situations where thpool is free twice.
2016-02-03 18:18:20 +08:00
Johan
fbbba9c33f
Merge pull request #31 from xiaokai-wang/master
...
Code style: remove spaces
2016-01-27 08:04:45 +00:00
xiaokai1
e5e9aeee0c
code style: remove space
2016-01-27 14:31:10 +08:00
Johan
a56bffe8b7
Merge pull request #28 from marwankallal/return
...
Replaced `exit(1)`s with `return`s in thread pool initializer.
2016-01-22 10:38:40 +00:00
Johan
8d24894309
Merge pull request #25 from bpetri/master
...
Make threadpool more generic by replacing prctl => pthread_setname_np
2016-01-21 15:18:21 +00:00
Johan
18310ad653
Merge pull request #26 from marwankallal/malloc-fix
...
fixed #21
2016-01-21 09:36:31 +00:00
Marwan Kallal
a0c777488d
replaced exit with return
2015-12-22 20:46:30 -05:00
Drew Weymouth
da2c0fe45e
move locking inside jobqueue_push and pull
2015-12-21 19:45:06 -08:00
Drew Weymouth
04cf949f9f
refactoring jobqueue interface, jobqueue embedded in thpool struct
2015-12-21 19:36:36 -08:00
Marwan Kallal
5e5b177361
fixed #21
2015-12-18 13:17:32 -05:00
Bjoern Petri
9f4ac0616b
Replace prctl w/ pthread_setname_np. Use predefined macros to differ btwn linux and os x.
2015-12-14 13:43:17 +01:00
Pithikos
d6a9c83c3a
Merge branch 'everclear-everclear-valgrind'
...
Initializing the sigaction struct resolving valgrind false positive errors
2015-12-12 11:13:24 +00:00
Pithikos
594f1eee02
Error checking for valgrind is redundant since overlapping with other tests
2015-12-12 11:11:32 +00:00
Pithikos
a4a0f3b725
Assure valgrind is installed before running tests
2015-12-11 15:24:24 +00:00
Pithikos
55fb89164c
Remove obsolete documentation after commit @860303e
2015-12-11 14:55:01 +00:00
Johan
860303ef5b
Merge pull request #24 from dweymouth/master
...
Using signaling instead of polling in thpool_wait() from now on
2015-12-11 11:30:37 +00:00
Drew Weymouth
71adb90e04
Forgot cond_init
2015-12-02 07:22:51 -08:00
Drew Weymouth
49f19b46f2
use signaling instead of polling in thpool_wait
2015-12-01 19:31:25 -08:00
Johan
c606e5ad4a
Merge pull request #22 from MedicineYeh/master
...
Add thread name + include pthread in example.c
2015-11-24 21:43:25 +00:00
MedicineYeh
90c4561942
add thread name, fix warning in the example
...
thread name is good for both profiling and debuging
also htop can turn on the option 'Show custom thread names' in 'Display
options'
the warning in example is ‘pthread_self’ [-Wimplicit-function-declaration]
2015-11-24 12:47:50 +08:00
Johan
ab2c0bb8ad
Merge pull request #19 from marioli/master
...
Fixes for jobqqeue_init and removed exit()
2015-06-28 19:05:47 +01:00
Mario Lombardo
b58a5431d3
added some (unlikely required) free()s
2015-06-26 17:00:45 +02:00
Mario Lombardo
e472a4bf75
Fixes for jobqqeue_init and removed exit()
2015-06-26 15:37:57 +02:00
everclear
895d08c89c
Added checking of Valgrind output for errors
2015-06-04 18:37:08 +01:00