Commit Graph

96 Commits

Author SHA1 Message Date
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
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
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 c1b7898782 Fixes valgrind errors
Syscall param rt_sigaction(act->sa_handler) points to uninitialised byte(s)
Syscall param rt_sigaction(act->sa_flags) points to uninitialised byte(s)
2015-06-04 18:33:50 +01:00
zweng 18142eee71 initilise jobqueue_p->len to 0 2015-05-10 13:47:57 -04:00
pithikos 5aee2f2574 THPOOL_DEBUG moved on top 2015-03-31 16:02:21 +01:00
nil0x42 470dcc7521 Add THPOOL_DEBUG define (mandatory for debug msgs)
Added this because some messages are ont designed to be printed
while integrating thpool in an existing project.
2015-03-31 12:53:50 +02:00
pithikos 1485e59e63 Edit of bug solution 2015-03-12 19:00:03 +00:00
nil0x42 d9bb612759 Fix nonempty heap/stack bug (unit test now passes) 2015-03-08 12:57:04 +01:00
pithikos 33e15ec369 Merge branch 'master' of https://github.com/Pithikos/C-Thread-Pool 2015-03-06 16:13:01 +00:00
pithikos 746cf897c3 Works now even when compiled with optimization flags 2015-03-06 16:11:07 +00:00
Chuang Xie 8fcdacbbb7 fix compile warning 2015-02-12 17:28:46 -05:00
pithikos 90174270f6 Concise error messages 2015-02-06 11:00:00 +00:00
Pithikos e68223a4c5 Smart polling implemented 2015-01-18 12:42:37 +00:00
pithikos f269de73f8 Final cleanup 2015-01-16 18:10:25 +00:00
pithikos bf44140c4f Seperate private from public functions 2015-01-15 09:12:26 +00:00
pithikos fcb69261b2 Small fixes 2015-01-14 17:54:35 +00:00
pithikos 0b32bf5340 Cleanup 2015-01-14 17:52:22 +00:00
pithikos c11bf82827 small fixes 2015-01-14 17:49:39 +00:00
pithikos e60a838d19 Refactored tests 2015-01-09 19:30:29 +00:00
pithikos 8658cde5a7 small fix 2015-01-09 18:08:27 +00:00
pithikos 725630a030 small sync fixes 2015-01-09 18:06:37 +00:00
pithikos 3a844f4dfb Memore leaks solved 2015-01-09 17:35:26 +00:00
pithikos d6d5f3dcd8 Garbage 2015-01-09 17:14:37 +00:00
pithikos 2e8087ca20 Volatile! 2015-01-09 14:40:40 +00:00
pithikos 1c20ad1cde Simplicity 2015-01-02 19:23:22 +00:00
pithikos d42a436bfc Clean working 2015-01-01 12:02:06 +00:00
pithikos afc34e2419 Working ok 2014-12-31 15:17:11 +00:00
pithikos 68d3ebd676 Threads are encapsulated in structs from now on 2014-12-31 12:47:58 +00:00
pithikos f3d1a633a3 Before making thread struct 2014-12-31 12:34:52 +00:00
pithikos 311c072378 Single listed queue used from now on 2014-12-31 12:09:58 +00:00
pithikos ecb57846ce Single listed queue used from now on 2014-12-31 12:09:10 +00:00
pithikos 5fdd1c57e5 Cleanup 2014-12-30 12:56:19 +00:00
pithikos 0ff9af3da1 Cleanup 2014-12-30 12:32:15 +00:00
pithikos 8fb75e9a82 Deadlocks resolved 2014-12-30 12:28:43 +00:00
pithikos 1045bbda4e Static where needed 2014-12-29 16:42:27 +00:00
pithikos fdd7cb296a Works fine if push/pull are not happening concurrently 2014-12-29 16:21:01 +00:00
pithikos 66fd978dd4 Removed job info from threadpool struct 2014-12-29 13:23:44 +00:00
pithikos 47eac3da93 Queue operations are thread-safe 2014-12-29 13:15:26 +00:00
pithikos cfff149a5c Queue operations are thread-safe 2014-12-29 13:14:45 +00:00
pithikos d552a6278c Documentation changes 2014-12-29 11:48:08 +00:00
Pithikos 4240210b5c initial 2014-11-23 11:38:34 +00:00
Johan 093a9b7021 Solved race condition that was giving segfault when adding large number of jobs while workers were reading from job queue 2011-11-07 01:33:43 +01:00
Johan Hanssen Seferidis 62db7345e7 Initial commit 2011-11-05 13:35:31 +01:00