Commit 6460bff2 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

rename busyobj_state_e to boc_state_e

parent 9d2255a5
...@@ -381,7 +381,7 @@ struct storeobj { ...@@ -381,7 +381,7 @@ struct storeobj {
/* /*
* The macro-states we expose outside the fetch code * The macro-states we expose outside the fetch code
*/ */
enum busyobj_state_e { enum boc_state_e {
BOS_INVALID = 0, /* don't touch (yet) */ BOS_INVALID = 0, /* don't touch (yet) */
BOS_REQ_DONE, /* beresp.* can be examined */ BOS_REQ_DONE, /* beresp.* can be examined */
BOS_STREAM, /* beresp.* can be examined */ BOS_STREAM, /* beresp.* can be examined */
...@@ -396,7 +396,7 @@ struct boc { ...@@ -396,7 +396,7 @@ struct boc {
struct lock mtx; struct lock mtx;
pthread_cond_t cond; pthread_cond_t cond;
void *stevedore_priv; void *stevedore_priv;
enum busyobj_state_e state; enum boc_state_e state;
uint8_t *vary; uint8_t *vary;
struct busyobj *busyobj; struct busyobj *busyobj;
...@@ -853,8 +853,8 @@ int ObjIterate(struct worker *, struct objcore *, ...@@ -853,8 +853,8 @@ int ObjIterate(struct worker *, struct objcore *,
int ObjGetSpace(struct worker *, struct objcore *, ssize_t *sz, uint8_t **ptr); int ObjGetSpace(struct worker *, struct objcore *, ssize_t *sz, uint8_t **ptr);
void ObjExtend(struct worker *, struct objcore *, struct boc *, ssize_t l); void ObjExtend(struct worker *, struct objcore *, struct boc *, ssize_t l);
ssize_t ObjWaitExtend(struct worker *, struct objcore *, struct boc *, ssize_t l); ssize_t ObjWaitExtend(struct worker *, struct objcore *, struct boc *, ssize_t l);
void ObjSetState(struct boc *, enum busyobj_state_e next); void ObjSetState(struct boc *, enum boc_state_e next);
void ObjWaitState(struct boc *, enum busyobj_state_e want); void ObjWaitState(struct boc *, enum boc_state_e want);
void ObjTrimStore(struct worker *, struct objcore *); void ObjTrimStore(struct worker *, struct objcore *);
void ObjTouch(struct worker *wrk, struct objcore *oc, double now); void ObjTouch(struct worker *wrk, struct objcore *oc, double now);
unsigned ObjGetXID(struct worker *, struct objcore *); unsigned ObjGetXID(struct worker *, struct objcore *);
......
...@@ -155,7 +155,7 @@ ObjWaitExtend(struct worker *wrk, struct objcore *oc, struct boc *boc, ...@@ -155,7 +155,7 @@ ObjWaitExtend(struct worker *wrk, struct objcore *oc, struct boc *boc,
*/ */
void void
ObjSetState(struct boc *boc, enum busyobj_state_e next) ObjSetState(struct boc *boc, enum boc_state_e next)
{ {
CHECK_OBJ_NOTNULL(boc, BOC_MAGIC); CHECK_OBJ_NOTNULL(boc, BOC_MAGIC);
...@@ -172,7 +172,7 @@ ObjSetState(struct boc *boc, enum busyobj_state_e next) ...@@ -172,7 +172,7 @@ ObjSetState(struct boc *boc, enum busyobj_state_e next)
*/ */
void void
ObjWaitState(struct boc *boc, enum busyobj_state_e want) ObjWaitState(struct boc *boc, enum boc_state_e want)
{ {
CHECK_OBJ_NOTNULL(boc, BOC_MAGIC); CHECK_OBJ_NOTNULL(boc, BOC_MAGIC);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment