X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fbucket.h;h=24e7ae00d13c1a5d810a2eae38559de8960aa7ab;hb=68fe13e77b7ceaf950289e747281655ddb264576;hp=80c6f43227586c18185d2ee44cc721d2b7ad32f8;hpb=49ed04e2e93a6a5b01058638224621d5c07db01c;p=libucw.git diff --git a/lib/bucket.h b/lib/bucket.h index 80c6f432..24e7ae00 100644 --- a/lib/bucket.h +++ b/lib/bucket.h @@ -42,6 +42,9 @@ struct fastbuf; void obuck_init(int writeable); /* Initialize the bucket module */ void obuck_cleanup(void); /* Clean up the bucket module */ void obuck_sync(void); /* Flush all buffers to disk */ +void obuck_lock_read(void); /* Explicit locking to make sure other threads don't touch buckets now */ +void obuck_lock_write(void); +void obuck_unlock(void); /* Searching for buckets */ void obuck_find_by_oid(struct obuck_header *hdrp);