[LAD] Inter thread Communication: Design Approach
arnold at arnoldarts.de
Sat Aug 20 15:57:14 UTC 2011
On Saturday 20 August 2011 17:04:46 Gabriel Beddingfield wrote:
> DISADVANTAGE: Using dynamic_cast<> uses RTTI and can have a performance
> penalty... but guards against programming mistakes (throwing an
> exception if cast is invalid). Switch to reinterpret_cast<> if speed is
> a problem.
This performance penalty might hit you when you do one such message for every
sample of audio, it will have no practical effect when its just the user
interface signaling other parts of the app.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 198 bytes
Desc: This is a digitally signed message part.
More information about the Linux-audio-dev