summaryrefslogtreecommitdiff
path: root/jackd/clientengine.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert "use topological sort for client ordering (fons adriaensen)"Paul Davis2016-03-021-24/+16
| | | | This reverts commit 423931219dd3e3b669fde97786cadae92c066dc1.
* use topological sort for client ordering (fons adriaensen)Paul Davis2016-02-231-16/+24
|
* uncrustification of jack source codePaul Davis2016-02-231-258/+261
|
* remove inclusion of <uuid/uuid.h> since it is not actually used any morePaul Davis2014-05-271-1/+0
|
* Initialize private_client to prevent segfault on unload if client fails to ↵Peter Nelson2014-03-051-0/+1
| | | | initialize.
* set latency callback cbset field to FALSE, fix segfault on (at least) ARMPaul Davis2014-01-271-0/+1
|
* change UUID implementation to use integers and serial counters; remove -L ↵Paul Davis2013-11-301-19/+18
| | | | option from jack_lsp because "total latency" is deprecated
* fix error in handling of -T (temporary server) caused by cast to wrong type ↵Paul Davis2013-11-271-2/+6
| | | | when checking client list (also added extra debugging/VERBOSE statements)
* fix arguably incorrect marking of client with errors after process cycle ↵Paul Davis2013-10-231-0/+1
| | | | | | | | | | fails to return to server When reading the byte from the wait file descriptor failed, jack would mark the client at the head of the external client chain with an error. But the fault may not have been with that client. So now if the read error is EAGAIN ('no data available') do not mark the client, but rely on other mechanisms to detect too-slow or dead clients. Also tweak VERBOSE output a little in some related spots.
* if started as a temporary server, count only external clients when deciding ↵Paul Davis2013-10-121-19/+30
| | | | whether to keep running
* fix up issues with (a) delivery of buffer size changes to internal clients ↵Paul Davis2013-10-091-0/+1
| | | | (b) incorrect memset() of an event in latency handling
* do not attempt to unload anything except an internal clientPaul Davis2013-10-061-2/+6
|
* enforce requirement for exact name use when loading an internal clientPaul Davis2013-10-061-1/+1
|
* wrap UUID generationPaul Davis2013-10-031-1/+1
|
* if an absolute path is given for an internal client load name, use it by ↵Paul Davis2013-10-031-2/+11
| | | | | | just appending ".so" we used to still look in ADDON_DIR, which might be "secure" but is a bit pointless and inconvenient
* add code to remove metadata for ports and clients when ports and clients are ↵Paul Davis2013-10-021-0/+11
| | | | deleted/cleaned up
* set up property change notification structures and callsPaul Davis2013-09-301-0/+1
|
* fix display of new client UUID in verbose mode, and add errno if initial ↵Paul Davis2013-09-251-7/+7
| | | | client read(2) fails
* first pass at working UUID-based clients and ports. many JACK clients work ↵Paul Davis2013-09-241-53/+85
| | | | correctly without recompilation
* #include changes to reflect separation of public and private headersPaul Davis2012-02-081-5/+5
|
* [engine] rename continuous_stream to timeout_count and make threshold ↵torben2011-05-291-1/+1
| | | | | | configurable git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4432 0c269be4-1314-0410-8aa9-9f06e86f4224
* [engine] make jack_check_clients return errs. when no err, read graph_waittorben2011-05-291-2/+6
| | | | | | | | | | | if jack_check_clients does not find a bad client, we need to read the graph_wait_fd. otherwise we end up with too many execution tokens floating around. this commit also fixes the reset of the continuous stream and makes the mercysleep use ms instead of ns. git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4430 0c269be4-1314-0410-8aa9-9f06e86f4224
* [engine] in case of a continous stream of timeouts, we suspend the execution ↵torben2011-05-291-0/+7
| | | | | | of the processing graph. git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4429 0c269be4-1314-0410-8aa9-9f06e86f4224
* [engine] relax the rules for zombificationtorben2011-05-291-3/+18
| | | | | | | | | | | we now give a client which didnt finish, a bit more time to complete its process_cb. this should prevent most cases of unjustified client zombification. however we can get streams of xruns, because we can overload the cpu now. git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4428 0c269be4-1314-0410-8aa9-9f06e86f4224
* [engine] make jack_remove_client() visibletorben2011-05-291-1/+1
| | | | git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4422 0c269be4-1314-0410-8aa9-9f06e86f4224
* [engine] fix a few warnings.torben2011-01-121-4/+4
| | | | git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4110 0c269be4-1314-0410-8aa9-9f06e86f4224
* move jack_wake_server_thread to engine.c and make sure jack_signal_problems ↵torben2010-11-171-13/+1
| | | | | | | | wakes it. this fixes the server thread not waking up, when a client got SIGSTOP. git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4087 0c269be4-1314-0410-8aa9-9f06e86f4224
* port notifications are sent after portsegment attach etc...torben2010-10-131-5/+6
| | | | git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4066 0c269be4-1314-0410-8aa9-9f06e86f4224
* use jack_client_internal_by_id() and dont use a loop.torben2010-10-081-31/+25
| | | | git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4064 0c269be4-1314-0410-8aa9-9f06e86f4224
* deliver BufferSizeChange event during jack_activatetorben2010-10-081-0/+3
| | | | git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4063 0c269be4-1314-0410-8aa9-9f06e86f4224
* send AttachPortSegment events during jack_client_activatetorben2010-10-081-0/+8
| | | | git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4061 0c269be4-1314-0410-8aa9-9f06e86f4224
* fix a possible race/deadlock when jack is quitting and clients try to ↵paul2010-04-131-58/+70
| | | | | | connect; mention jack_free() and not free() in port buffer docs; fix failure to execute clients using wait API; tweak session mgmt code so that the SM can pass directory names with or without a trailing '/'; unload/finish internal clients at a better time to stop crashes; add new and as-yet not used and definitely unfinished a2j internal clients for ALSA/MIDI bridge git-svn-id: svn+ssh://jackaudio.org/trunk/jack@3981 0c269be4-1314-0410-8aa9-9f06e86f4224
* add session notification infrastructuretorben2010-03-261-10/+89
| | | | | | squashed rebase. git-svn-id: svn+ssh://jackaudio.org/trunk/jack@3969 0c269be4-1314-0410-8aa9-9f06e86f4224
* commit serious design flaw that left jackd in freewheeling mode if the ↵paul2010-01-261-2/+7
| | | | | | client that initiated freewheeling leaves the graph (either deliberately, or via a crash) git-svn-id: svn+ssh://jackaudio.org/trunk/jack@3877 0c269be4-1314-0410-8aa9-9f06e86f4224
* fix potential crash/memory corruption if client exits before ↵paul2009-11-131-1/+4
| | | | | | jack_client_open() returns git-svn-id: svn+ssh://jackaudio.org/trunk/jack@3783 0c269be4-1314-0410-8aa9-9f06e86f4224
* proper cleanup of "temporary" JACK server, by killing the wait thread with ↵paul2008-12-071-6/+11
| | | | | | SIGUSR2 git-svn-id: svn+ssh://jackaudio.org/trunk/jack@3194 0c269be4-1314-0410-8aa9-9f06e86f4224
* revert most of last changepaul2008-12-071-3/+3
| | | | git-svn-id: svn+ssh://jackaudio.org/trunk/jack@3192 0c269be4-1314-0410-8aa9-9f06e86f4224
* stop & detach driver when exiting due to -T/--temporary flagpaul2008-12-071-0/+6
| | | | git-svn-id: svn+ssh://jackaudio.org/trunk/jack@3191 0c269be4-1314-0410-8aa9-9f06e86f4224
* bump to 0.116.0; torben's re-pushed changes to make 32/64 compatibility ↵paul2008-12-011-2/+10
| | | | | | really work, which change the size of a couple of protocol structures (hence the minor version change); use CFLAGS from environment; export JACK_CORE_CFLAGS to makefiles so that simd.c can use it and not JACK_CFLAGS which includes optimization flags; don't use MMX for math if we're using SSE; torben's patch to add better (ALSA memops-based) scaling for float->int16 conversion git-svn-id: svn+ssh://jackaudio.org/trunk/jack@3143 0c269be4-1314-0410-8aa9-9f06e86f4224
* fix export of pointers into JACK API headers, thus allowing a 64 bit JACK ↵paul2008-10-151-32/+51
| | | | | | server to support 32 bit clients and vice versa (work done primarily by Torben, with a few cleanups from Paul) git-svn-id: svn+ssh://jackaudio.org/trunk/jack@3000 0c269be4-1314-0410-8aa9-9f06e86f4224
* compilation fixes for OS X; remove "no message buffer overruns" messagepaul2008-06-051-3/+2
| | | | git-svn-id: svn+ssh://jackaudio.org/trunk/jack@2466 0c269be4-1314-0410-8aa9-9f06e86f4224
* fixes for detecting and cleaning up problematic clientspaul2008-06-051-75/+70
| | | | git-svn-id: svn+ssh://jackaudio.org/trunk/jack@2459 0c269be4-1314-0410-8aa9-9f06e86f4224
* karsten's mutex -> rwlock patch; fix up driver attach ordering so that we ↵paul2008-05-121-3/+3
| | | | | | still get "system" port names git-svn-id: svn+ssh://jackaudio.org/trunk/jack@1188 0c269be4-1314-0410-8aa9-9f06e86f4224
* mark clients Finished after process has been called; remove clients that do ↵paul2008-05-091-4/+21
| | | | | | not respond to events et al; use poll&read to wait for event responses, not just read; add -r to remove/replace JACK SHM registry at startup git-svn-id: svn+ssh://jackaudio.org/trunk/jack@1177 0c269be4-1314-0410-8aa9-9f06e86f4224
* Version 0.109.8 : new thread modelsletz2008-03-121-0/+2
| | | | git-svn-id: svn+ssh://jackaudio.org/trunk/jack@1121 0c269be4-1314-0410-8aa9-9f06e86f4224
* Version 0.109.4 : Nedko Arnaudov log patchsletz2008-03-041-11/+11
| | | | git-svn-id: svn+ssh://jackaudio.org/trunk/jack@1092 0c269be4-1314-0410-8aa9-9f06e86f4224
* add port connect callback, add per-port update total latency, fix (?) ↵paul2007-06-081-0/+2
| | | | | | compiles against alsa-midi on x86_64 and other platforms git-svn-id: svn+ssh://jackaudio.org/trunk/jack@1046 0c269be4-1314-0410-8aa9-9f06e86f4224
* add -Z flag to cancel zombification on timeoutpaul2007-06-071-5/+7
| | | | git-svn-id: svn+ssh://jackaudio.org/trunk/jack@1044 0c269be4-1314-0410-8aa9-9f06e86f4224
* remove all CVS Id lines from source and headerspaul2007-04-181-1/+0
| | | | git-svn-id: svn+ssh://jackaudio.org/trunk/jack@1031 0c269be4-1314-0410-8aa9-9f06e86f4224
* add new client registration callback (protocol and library version incremented)paul2007-04-181-0/+6
| | | | git-svn-id: svn+ssh://jackaudio.org/trunk/jack@1030 0c269be4-1314-0410-8aa9-9f06e86f4224