mirror of
https://review.haiku-os.org/haiku
synced 2025-01-18 12:38:51 +01:00
4055af5143
The previous implementation allocated and freed event objects on every insertion and removal using malloc()/free(). It was also licensed under a "distributions in binary form must reproduce ... in the binary" license, which is more restrictive than the MIT license that we prefer. So, this is a rewrite from scratch. It uses the standard DoublyLinkedList<> rather than rolling its own, and manages a free list of event queue objects rather than hitting malloc() all the time. It only frees chunks on destruction, though, but that hopefully won't be an issue anyway. All tests from the TimedEventQueueTest still pass, and media playback still works as before. Change-Id: Ia940b6176f8051ae4823b75acd305ded8783d1e0 Reviewed-on: https://review.haiku-os.org/c/haiku/+/8594 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: waddlesplash <waddlesplash@gmail.com> |
||
---|---|---|
.. | ||
Buffer.h | ||
BufferConsumer.h | ||
BufferGroup.h | ||
BufferProducer.h | ||
Controllable.h | ||
FileInterface.h | ||
MediaAddOn.h | ||
MediaDecoder.h | ||
MediaDefs.h | ||
MediaEncoder.h | ||
MediaEventLooper.h | ||
MediaFile.h | ||
MediaFiles.h | ||
MediaFormats.h | ||
MediaNode.h | ||
MediaRecorder.h | ||
MediaRoster.h | ||
MediaTheme.h | ||
MediaTrack.h | ||
ParameterWeb.h | ||
PlaySound.h | ||
RealtimeAlloc.h | ||
Sound.h | ||
SoundFile.h | ||
SoundPlayer.h | ||
TimeCode.h | ||
TimedEventQueue.h | ||
TimeSource.h |