premiere-libtorrent/bindings
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
..
c removed use of boost::bind and boost::scoped_array (#1053) 2016-09-01 09:43:53 -04:00
python deprecate lock_files (#2344) 2017-09-17 10:43:27 +02:00
Makefile.am Rewrite autotools build system (new configure.ac, changes for various 2009-09-10 02:22:13 +00:00
README.txt added docs for python binding. Fixed warning in python binding. 2007-02-20 04:32:13 +00:00

README.txt

Documentation covering building and using the python binding for libtorrent
is located in the main doc directory. See docs/python_binding.html