[LAD] Inter thread Communication: Design Approach

Arnold Krille 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.

Have fun,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20110820/e1c82a6e/attachment.pgp>

More information about the Linux-audio-dev mailing list