diff options
Diffstat (limited to 'fdmap.h')
-rw-r--r-- | fdmap.h | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -14,15 +14,13 @@ static inline struct mog_fd * mog_fd_of(void *as_obj) /* used to validate a mog_fd is never in two queues at once */ static inline void mog_fd_check_in(struct mog_fd *mfd) { - assert(mog_sync_add_and_fetch(&mfd->in_queue, 1) == 1 && - "in_queue counter off (check in)"); + /* currently unused */ } /* used to validate a mog_fd is never in two queues at once */ static inline void mog_fd_check_out(struct mog_fd *mfd) { - assert(mog_sync_sub_and_fetch(&mfd->in_queue, 1) == 0 && - "in_queue counter off (check out)"); + /* currently unused */ } static inline struct mog_fd * mog_fd_init(int fd, enum mog_fd_type fd_type) @@ -32,7 +30,6 @@ static inline struct mog_fd * mog_fd_init(int fd, enum mog_fd_type fd_type) mfd->fd = fd; mfd->fd_type = fd_type; mfd->queue_state = MOG_QUEUE_STATE_NEW; - assert((mfd->in_queue = 0) == 0 && "in_queue check"); return mfd; } |