[Cs-dev] Software Bus and Thread Safety
Date | 2012-08-05 13:38 |
From | Alex Weiss |
Subject | [Cs-dev] Software Bus and Thread Safety |
Attachments | None None |
Hi list, I have two questions regarding the software bus or, more specifically, chnget: - All code examples I could find online call csoundGetChannelPtr() every time before changing a value. Is this necessary? After all, shouldn't the pointer to the channel remain valid throughout the performance?
- Similarly, the examples write to the bus from the main thread instead of the performance thread. Is this safe? If not, is there a way to lock a channel? Looking at the source I found csoundGetChannelLock(), but I couldn't find it in the API reference.
Thanks, Alex
|