Revision 846833

Go back to digest for 17th August 2008

Features in Multimedia

Matthias Kretz committed changes in /trunk/kdesupport/phonon/phonon/experimental:

Add the classes Packet and PacketPool.
They allow to easily preallocate some memory and then work with packets of that pool.

Packets are reference counted and automatically returned to the pool when the last external reference goes away.

This allows applications to very easily push data around without getting stuck by malloc/free should those ever get expensive, like when the system starts thrashing.

File Changes

Added 6 files
  • /trunk/kdesupport/phonon/phonon/experimental
  •   /packet.cpp
  •   /packet.h
  •   /packet_p.h
  •   /packetpool.cpp
  •   /packetpool.h
  •   /packetpool_p.h
6 files changed in total