shaka-packager/packager/media/file
KongQun Yang b17d240060 Fix a memory leak due to thread object tracking
ThreadedIoFile spawns a new thread for every new file. Thread
information is stored for tracking purpose by base::tracked_objects.
The tracking object remains even if the thread itself is destroyed.
This results in memory usage increased by a couple of bytes for every
new segment created in live mode (new segments spawns new threads).

Use WorkerPool instead to avoid spawning new threads.

Fixes Issue #61.

Change-Id: Id93283903c3ba8ebf172a0d58e19b082a72c6cf0
2016-01-08 23:41:41 +00:00
..
file.cc Added unit tests for WebM Segmenters. 2016-01-07 17:07:02 +00:00
file.gyp Fix a memory leak due to thread object tracking 2016-01-08 23:41:41 +00:00
file.h Added WebM muxer. 2015-12-15 20:34:44 +00:00
file_closer.h Fix a possible crash if a file fails to be closed 2015-11-13 10:07:13 -08:00
file_test_util.h Added unit tests for WebM Segmenters. 2016-01-07 17:07:02 +00:00
file_unittest.cc Added Seek & Tell functionality to ThreadedIoFile. 2015-12-08 22:55:08 +00:00
io_cache.cc Fix for race condition when flushing ThreadedIoFile. 2015-10-20 16:44:15 +00:00
io_cache.h Fix for race condition when flushing ThreadedIoFile. 2015-10-20 16:44:15 +00:00
io_cache_unittest.cc Fix for race condition when flushing ThreadedIoFile. 2015-10-20 16:44:15 +00:00
local_file.cc Update code to resolve problems due to base updates. 2015-10-16 20:09:56 +00:00
local_file.h Update code to resolve problems due to base updates. 2015-10-16 20:09:56 +00:00
memory_file.cc Added unit tests for WebM Segmenters. 2016-01-07 17:07:02 +00:00
memory_file.h Added unit tests for WebM Segmenters. 2016-01-07 17:07:02 +00:00
memory_file_unittest.cc Added unit tests for WebM Segmenters. 2016-01-07 17:07:02 +00:00
threaded_io_file.cc Fix a memory leak due to thread object tracking 2016-01-08 23:41:41 +00:00
threaded_io_file.h Fix a memory leak due to thread object tracking 2016-01-08 23:41:41 +00:00
udp_file.h Update code to resolve problems due to base updates. 2015-10-16 20:09:56 +00:00
udp_file_posix.cc Added File Seek and Tell functionality. 2015-05-21 12:48:20 -07:00
udp_file_win.cc Added File Seek and Tell functionality. 2015-05-21 12:48:20 -07:00