ssj71 | I figured since half of my object I was trying to pass came out as garbage | 00:02 |
---|---|---|
rgareus | ardour/jack uses 4 * jack_port_type_get_buffer_size (, JACK_DEFAULT_MIDI_TYPE); for the worker buffer | 00:02 |
rgareus | on can't set a minimumSize for the worker-thread buffer. I think falkTX mixed it up with Atom Ports. | 00:04 |
rgareus | ssj71: you can mutex in the worker thread if needed. it's not realtime and can block. | 00:05 |
rgareus | but a mutex is not needed. there is only one worker thread | 00:05 |
ssj71 | ok. I wasn't sure. | 00:06 |
ssj71 | thanks | 00:06 |
rgareus | plugin_run() { if (self->should_do_some_work && !self->already_queued_work) { self->already_queued_work = true; ... schedule_work(); } | 00:07 |
rgareus | you could catch if (self->should_do_some_work && self->already_queued_work) { .. remember last work that should be done and do it later .. } | 00:07 |
rgareus | work_response is always called _after_ run() once it's ready (and before the next run) | 00:09 |
ssj71 | worker in this case only has 1 task. It only loads files and the response only assigns the returned data to the plugin | 00:09 |
rgareus | and work_response needs to be RT-safe | 00:10 |
ssj71 | yes I'm aware of that | 00:10 |
rgareus | ok. please take it as confirmation of existing knowlege then :) | 00:11 |
ssj71 | I think if a second call to work() happened before the work_response() completed I could have threading issues though | 00:11 |
ssj71 | so I should probably mutex | 00:11 |
ssj71 | its unlikely but may as well be safe | 00:12 |
rgareus | the work will be done in correct order (there is only one worker thread). | 00:22 |
rgareus | but you can simply not call work() if you know that you already scheduled work and am waiting for it to complete. a simple flag (see above) will do the trick. | 00:23 |
*** NickSB2 has joined #lv2 | 01:26 | |
*** aombk has joined #lv2 | 02:47 | |
*** aombk2 has quit IRC | 02:47 | |
*** NickSB2 has quit IRC | 03:51 | |
*** edogawa has joined #lv2 | 06:11 | |
*** sigma6 has joined #lv2 | 08:27 | |
*** ricardocrudo has joined #lv2 | 08:31 | |
*** NickSB2 has joined #lv2 | 08:37 | |
*** yann-kaelig has joined #lv2 | 08:50 | |
*** falktx has joined #lv2 | 08:51 | |
*** ricardocrudo has quit IRC | 09:09 | |
*** sigma6 has quit IRC | 09:15 | |
*** sigma6 has joined #lv2 | 09:15 | |
*** ricardocrudo has joined #lv2 | 09:24 | |
*** NickSB2 has quit IRC | 11:12 | |
*** NickSB2 has joined #lv2 | 11:18 | |
*** NickSB2 has quit IRC | 13:14 | |
*** rncbc has joined #lv2 | 15:35 | |
*** ricardocrudo has quit IRC | 16:20 | |
*** ricardocrudo has joined #lv2 | 16:34 | |
*** ricardocrudo has quit IRC | 16:38 | |
*** ricardocrudo has joined #lv2 | 16:50 | |
*** sigma6 has quit IRC | 16:56 | |
*** ricardocrudo has quit IRC | 17:17 | |
*** rncbc has quit IRC | 17:30 | |
*** ricardocrudo has joined #lv2 | 17:31 | |
*** ricardocrudo has quit IRC | 17:57 | |
*** artfwo has joined #lv2 | 18:38 | |
falktx | the more I post in the mailing lists, the more people ask things back | 18:38 |
falktx | err | 18:48 |
rgareus | lol | 18:56 |
rgareus | well, so far I think it was a good discussion. a bit repetative but sti clearing thins up | 18:57 |
*** flexus has joined #lv2 | 19:07 | |
ssj71 | I've been thinking about osc control and the arguments are all about the same. | 19:39 |
*** ricardocrudo has joined #lv2 | 19:48 | |
*** Haskellfant has left #lv2 | 20:07 | |
*** NickSB2 has joined #lv2 | 20:12 | |
*** ricardocrudo_ has joined #lv2 | 20:19 | |
*** ricardocrudo has quit IRC | 20:22 | |
*** EntropyS1nk has quit IRC | 20:34 | |
*** flexus has quit IRC | 20:50 | |
*** ricardocrudo__ has joined #lv2 | 21:02 | |
*** EntropySink has joined #lv2 | 21:04 | |
*** ricardocrudo has joined #lv2 | 21:05 | |
*** ricardocrudo_ has quit IRC | 21:06 | |
*** falktx has quit IRC | 21:07 | |
*** ricardocrudo__ has quit IRC | 21:08 | |
*** ricardocrudo has quit IRC | 21:10 | |
*** edogawa has quit IRC | 21:30 | |
*** falktx__ has joined #lv2 | 21:44 | |
*** Anchakor has joined #lv2 | 22:25 | |
*** falktx__ has quit IRC | 23:28 | |
*** NickSB2 has quit IRC | 23:32 |
Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!