aboutsummaryrefslogtreecommitdiffstats
path: root/src/worker.c
AgeCommit message (Collapse)AuthorFilesLines
2022-11-16Switch to external zix dependencyDavid Robillard1-3/+3
2022-08-17Make worker opaqueDavid Robillard1-23/+90
2022-08-17Clean up and document worker implementationDavid Robillard1-38/+52
2022-08-17Fix thread-safety of plugin/UI communication ringsDavid Robillard1-2/+7
2022-08-17Factor out the concept of writing a "packet" in the workerDavid Robillard1-7/+13
2022-08-17Update zixDavid Robillard1-2/+2
2022-08-17Propagate worker errors to the scheduler when possibleDavid Robillard1-3/+4
2022-08-17Remove unnecessary castsDavid Robillard1-4/+4
2022-08-17Remove lilv dependency from worker.h and worker.cDavid Robillard1-4/+3
2022-08-17Fix memory leaksDavid Robillard1-7/+3
2022-08-17Gracefully handle realloc() failureDavid Robillard1-4/+4
2022-08-17Remove Jalv back pointer from WorkerDavid Robillard1-13/+8
2022-08-17Adopt REUSE machine-readable licensing standardDavid Robillard1-15/+2
2022-05-27Gracefully handle attempt to schedule work with size 0David Robillard1-0/+6
2022-05-27Format all code with clang-formatDavid Robillard1-79/+79
2021-01-02Use email address instead of website for attributionDavid Robillard1-1/+1
2020-12-14Update zixDavid Robillard1-1/+1
2020-09-27Clean up includesDavid Robillard1-0/+9
2020-07-08Revert "worker: Only add response when enough space"David Robillard1-4/+0
This reverts commit f831a1ebde048b4a19b380ff3794180152757efa. This was merged accidentally.
2020-07-08Revert "worker: Do not read response when not yet available"David Robillard1-26/+7
This reverts commit 411f0e67f495fb436ce13ba12c63d7cf874aabd7. This was merged accidentally.
2020-04-05worker: Only add response when enough spaceTimo Wischer1-0/+4
for the complete response. Without this patch the size of the response might be added but not the response itself. This would corrupt the response queue because the previously added size will be used for the next response which will be added. Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
2020-04-05worker: Do not read response when not yet availableTimo Wischer1-7/+26
Without this patch the size of the response might be read successfully but the response will not be read. Therefore the while loop would exit and when entering the next time the size will be read again. But this second read of size will actually already read data from the response. Therefore the response will be corrupted and the response buffer cannot sync again. To avoid this issue it will first be checked if there is enough data available in the ring buffer to read the size and response. If not try again later. Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
2018-09-24Fix unused parameter warningsTimo Wischer1-1/+1
Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
2018-09-18Fix a potential crash when closed with workerJP Cimalando1-2/+9
2016-10-05Factor out Jack backendDavid Robillard1-17/+15
2016-07-31Do not call plugin work() method concurrentlyDavid Robillard1-0/+4
2016-07-31Support thread-safe state restorationDavid Robillard1-26/+40
2014-08-08Update copyright dates.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@5426 a436a847-0d15-0410-975c-d299462d15a1
2013-12-25Fix more const-correctness violations.David Robillard1-1/+3
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@5196 a436a847-0d15-0410-975c-d299462d15a1
2012-08-10Fix a ton of warnings.David Robillard1-4/+4
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4648 a436a847-0d15-0410-975c-d299462d15a1
2012-08-09Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes ↵David Robillard1-1/+1
-Wmissing-prototypes. git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4634 a436a847-0d15-0410-975c-d299462d15a1
2012-05-13Gracefully handle allocation failure.David Robillard1-1/+6
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4394 a436a847-0d15-0410-975c-d299462d15a1
2012-04-09Tidy.David Robillard1-3/+4
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4151 a436a847-0d15-0410-975c-d299462d15a1
2012-03-31Make jalv_worker_respond() private.David Robillard1-11/+11
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4136 a436a847-0d15-0410-975c-d299462d15a1
2012-03-31Move worker implementation to separate file.David Robillard1-0/+110
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4135 a436a847-0d15-0410-975c-d299462d15a1