]> sourceware.org Git - newlib-cygwin.git/commit
* flock.cc (lockf_t::operator new): Add operator taking a pointer. Call
authorCorinna Vinschen <corinna@vinschen.de>
Fri, 28 Mar 2008 12:36:19 +0000 (12:36 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 28 Mar 2008 12:36:19 +0000 (12:36 +0000)
commit31390e4ca643782a365c9fba0a1ca188c9bb854e
tree0bcdf7b209e014f297eef1402c1ae3e048b08c60
parentcb411288ce242024311e532096f6eff4d12aaab1
* flock.cc (lockf_t::operator new): Add operator taking a pointer.  Call
cmalloc instead of ccalloc in the default operator.  Add comments.
(inode_t::operator new): Call cmalloc instead of ccalloc.
(inode_t::get_all_locks_list): Return lockf_t pointer.
(inode_t::del_all_locks_list): Delete.  Remove calls throughout.
(inode_t::get): Handle failing new gracefully.
(MAX_LOCKF_CNT): Define.
(inode_t::get_all_locks_list): Use pre-allocated buffer in i_all_lf
instead of allocating every lock.  Return pointer to start of linked
list of locks.
(lockf_t::open_lock_obj): Create event object non-inheritable.
(fhandler_disk_file::lock): Handle failing new gracefully.
(lf_setlock): Allocate temporary buffer for node->i_all_lf from TLS.
Remove erroneous NtClose call.
(lf_getlock): Allocate temporary buffer for node->i_all_lf from TLS.
(lf_getblock): Set lf to return value of get_all_locks_list.
winsup/cygwin/ChangeLog
winsup/cygwin/flock.cc
This page took 0.033851 seconds and 5 git commands to generate.