Checkout
Bert Huijben
committed
on 25 Jun 10
Minor optimization in svn_io_file_lock2(). Move deprecated function.

* subversion/libsvn_subr/deprecated.c
(svn_io_file_lock): Move file … Show more
Minor optimization in svn_io_file_lock2(). Move deprecated function.

* subversion/libsvn_subr/deprecated.c

 (svn_io_file_lock): Move file from io.c to here.

* subversion/libsvn_subr/io.c

 (svn_io__file_clear_and_close): Rename to ...

 (file_clear_locks): ... this as this function is not shared between files

   and apr will take care of closing the file anyway. And comment on

   Windows and OS/2, because closing a file takes care of clearing the

   locks on these systems.

 (svn_io_file_lock): Move to deprecated.c.

 (svn_io_file_lock2): Don't register a cleanup handler on Windows and

   OS/2, as the locks will be freed by just closing the handle from the

   file cleanup.

Show less