Lines Matching refs:writer
175 * Check if a writer version of the lock is held by the current thread.
323 * Attempt to acquire a writer lock. Return true on success.
348 * Attempt to release a writer lock. Return true on success.
378 uint32_t writer;
396 if (readers & URW_WRITE_LOCKED) /* drop the writer lock */
416 writer = 0; /* no current writer */
421 * a writer. If the highest priority thread on the queue is a
422 * writer, stop there and wake it up.
440 if (writer != 0 || readers != 0)
442 /* one writer to wake */
443 writer++;
445 if (writer != 0)
455 if (writer) {
457 * Hand off the lock to the writer we will be waking.
643 * is a writer whose priority equals ours.
734 * If we hold the writer lock, bail out.
739 "calling thread owns the writer lock");
831 * If we hold the writer lock, bail out.
836 "calling thread owns the writer lock");
1029 * Since the writer lock is held, we'd better be
1035 "writer lock held, "