Mercurial > hg > audiodb
view tests/0019/short-description @ 385:4e68f7d4d524 api-inversion
Invert audiodb_create() / audioDB::create().
(This was straightforward, because audioDB::create() doesn't depend on
having any kind of state or reading it from disk, except of course for
the locks. New global functions acquire_lock() and divest_lock() [silly
name, I know], to be used both within audioDB::get_lock() and
audioDB::release_lock() and within (inverted) API functions directly.
Eventually the audioDB:: versions will be able to go away entirely)
author | mas01cr |
---|---|
date | Fri, 21 Nov 2008 15:22:15 +0000 |
parents | 3720f5a78f6e |
children |