Inline should be inline.  Also, rename w_wait() as worker_wait().