summaryrefslogtreecommitdiffstats
path: root/src/server/threadpool.h
Commit message (Collapse)AuthorAgeFilesLines
* [BUILD] rewrite CMake build system to track changes of source filesManuel Bentele2020-10-161-1/+1
| | | | | | | | | | This change restructures the source code directories, separates shared form non-shared application code and adds CMake dependencies. These dependencies allow the tracking of changes and trigger a rebuild of those build targets where changed files are involved. WARNING: Note that the support of the DNBD3_SERVER_AFL build option is not supported yet. Thus, the option should be never turned on.
* [SERVER] Add name param to threadpool_runSimon Rettberg2020-03-191-1/+2
|
* [SERVER] Make signal handling more POSIXSimon Rettberg2019-08-281-0/+5
| | | | | | | | | | | | | | | According to POSIX, a signal sent to a PID can be delivered to an arbitrary thread of that process that hasn't the signal blocked. This seens to never happen on Linux, but would mess things up since the code expected the main signal handler to only be executed by the main thread. This should now be fixed by examining the destination PID of the signal as well as the ID of the thread currently running the signal handler. If we notice the signal wasn't sent by our own PID and the handler is not currently run by the main thread, we re-send the signal to the main thread. Otherwise, if the signal was sent by our own PID but the handler is not run in the main thread, do nothing. This way we can use pthread_kill() to wake up threads that might be stuck in a blocking syscall when it's time to shut down.
* [SERVER] Big code cleanup, refactoring, minor bugfixingSimon Rettberg2015-01-061-0/+6
|
* [SERVER] Use a thread pool for client connectionsSimon Rettberg2015-01-051-0/+23