Kongqun Yang
644629c616
Replace scoped_ptr with std::unique_ptr
...
Change-Id: I1ed18bf876b6154d08a1f7913aa7e76c525451f9
2016-08-18 17:12:36 -07:00
Kongqun Yang
4f9c8ea781
Rename top level namespace to shaka
...
Issue #103
Change-Id: I67945c8ec6d2c178494d3b5400e5ec0170e9d115
2016-05-24 21:55:55 +00:00
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
Thomas Inskip
329afd0ade
Added Seek & Tell functionality to ThreadedIoFile.
...
Change-Id: I3c714014e961d08110ce194ad865322e0b487fcb
2015-12-08 22:55:08 +00:00
Thomas Inskip
7b74ca12de
Fixed a miniscule odds race condition found by tsan (Thread sanitizer)
...
in ThreadedIofile.
Added loop to handle partial writes in ThreadedIoFile.
Change-Id: Ib62855ab849ffbfd00afc5b226dd81d4cd38ff51
2015-11-17 18:42:10 +00:00
Thomas Inskip
05f80f961c
Fix for race condition when flushing ThreadedIoFile.
...
Change-Id: I46f26fa9fddf53ca5231c31d6442053ab5202ade
2015-10-20 16:44:15 +00:00
Kongqun Yang
47c79d08ce
Update code to resolve problems due to base updates.
...
Notably deprecate of OVERRIDE, to be replaced with C++11 override.
Bug: 22463130
Bug: 22664127
Change-Id: I12c82e092e9e8eb0870da4363307c3563a3531b7
2015-10-16 20:09:56 +00:00
Thomas Inskip
ada218c089
Added File Seek and Tell functionality.
...
Added ability to open files in direct-access mode (no buffering).
Change-Id: Icca71a60f6697967e7535a030c71414de95d8044
2015-05-21 12:48:20 -07:00
Thomas Inskip
0ff596e75b
Deprecated File::Eof.
...
Change-Id: I0cca5e175babcdeeb982f981f97f8dd1b0ae9649
2015-03-23 09:39:05 -07:00
Thomas Inskip
5ce7afeda4
Added threaded I/O.
...
Change-Id: I2528f5f48dafa1477f2d849b6b86cdda33e47f96
2015-03-20 21:15:39 +00:00