Mercurial > hg > audiodb
comparison close.cpp @ 590:4eedc18634f5
Use _locking() to emulate fcntl() locks
This is a rather terrible emulation; _locking() doesn't support
nonexclusive locks, and also doesn't document any useful return codes.
Oh well; it's a start.
author | mas01cr |
---|---|
date | Tue, 11 Aug 2009 21:42:18 +0000 |
parents | cc2b97d020b1 |
children | b1723ae7675e |
comparison
equal
deleted
inserted
replaced
589:9119f2fa3efe | 590:4eedc18634f5 |
---|---|
11 delete adb->track_lengths; | 11 delete adb->track_lengths; |
12 delete adb->track_offsets; | 12 delete adb->track_offsets; |
13 if(adb->cached_lsh) { | 13 if(adb->cached_lsh) { |
14 delete adb->cached_lsh; | 14 delete adb->cached_lsh; |
15 } | 15 } |
16 divest_lock(adb->fd); | |
16 close(adb->fd); | 17 close(adb->fd); |
17 free(adb); | 18 free(adb); |
18 } | 19 } |