premiere-libtorrent/examples
Steven Siloti 0232dc35cd deprecate lock_files (#2344)
File locking interacts poorly with the path to replace a read only file handle
with a read/write one. For performance reasons the old handle is not closed
until the new one is put in place. With file locking this obviously cannot
work because the first handle is holding a lock on the file. As a result,
file_pool::open_file fails in this case. Even if we dropped the reference to
the read only file handle before attempting to re-open it, the open could still
fail if another thread is holding a reference to the read only handle.

There doesn't seem to be a good way around this. The simple solution would be
to always open files in read/write mode, but that has obvious safety downsides.
Any other solution would significantly complicate the file pool code.
Deprecating file locking seems to be the least bad option.
2017-09-17 10:43:27 +02:00
..
cmake don't depend on or define UNICODE and _UNICODE on windows 2017-07-02 11:05:53 -04:00
CMakeLists.txt cmake: build examples in the same solution as libtorrent 2017-08-26 08:38:05 +02:00
Jamfile fix x64 build with VS2015 UP2 compiler (#640) 2016-04-25 17:22:09 -04:00
Makefile.am merge RC_1_1 into master 2017-03-08 18:01:59 -05:00
bt-get.cpp introduce lt namespace alias 2017-04-23 23:43:58 -04:00
bt-get2.cpp introduce lt namespace alias 2017-04-23 23:43:58 -04:00
client_test.cpp deprecate lock_files (#2344) 2017-09-17 10:43:27 +02:00
connection_tester.cpp use a dedicated class template for flags types instead of enum class. It's more backwards compatible and improves ergonomics 2017-07-15 01:15:57 -07:00
dump_torrent.cpp make file attributes (in file_storage) type safe 2017-08-04 07:38:57 +02:00
make_torrent.cpp make create_torrent flags type-safe 2017-08-04 21:23:42 +02:00
print.cpp minor fixes and changes to client_test 2017-05-07 20:41:28 -04:00
print.hpp introduce lt namespace alias 2017-04-23 23:43:58 -04:00
run_benchmarks.py Add/fix shebang in python scripts, add execute permission (linux), remove whitespace/tabs at end of line 2015-07-12 14:24:01 +08:00
session_view.cpp deprecate direct access to array in session_stats_alert (#2033) 2017-05-27 20:33:31 -04:00
session_view.hpp deprecate direct access to array in session_stats_alert (#2033) 2017-05-27 20:33:31 -04:00
simple_client.cpp use span in torrent_info constructors and deprecate the redundant flags argument 2017-07-22 00:00:44 -07:00
stats_counters.cpp introduce lt namespace alias 2017-04-23 23:43:58 -04:00
torrent_view.cpp make add_torrent_params::flags_t an enum class and move it out into its own header 2017-07-17 01:05:31 -07:00
torrent_view.hpp introduce lt namespace alias 2017-04-23 23:43:58 -04:00
upnp_test.cpp introduce lt namespace alias 2017-04-23 23:43:58 -04:00