Lines Matching refs:semaphore
74 * Special global semaphore used to protect network
78 struct semaphore netcmd_semaphore; /* GLOBAL */
581 /* semaphore functions */
584 semaphore_clear (struct semaphore *s)
590 semaphore_open (struct semaphore *s, const char *name)
602 msg (M_WARN|M_ERRNO, "WARNING: Cannot create Win32 semaphore '%s'", name);
604 dmsg (D_SEMAPHORE, "Created Win32 semaphore '%s'", s->name);
608 semaphore_lock (struct semaphore *s, int timeout_milliseconds)
617 dmsg (D_SEMAPHORE_LOW, "Attempting to lock Win32 semaphore '%s' prior to net shell command (timeout = %d sec)",
622 msg (M_ERR, "Wait failed on Win32 semaphore '%s'", s->name);
626 dmsg (D_SEMAPHORE, "Locked Win32 semaphore '%s'", s->name);
631 dmsg (D_SEMAPHORE, "Wait on Win32 semaphore '%s' timed out after %d milliseconds",
640 semaphore_release (struct semaphore *s)
645 dmsg (D_SEMAPHORE, "Releasing Win32 semaphore '%s'", s->name);
647 msg (M_WARN | M_ERRNO, "ReleaseSemaphore failed on Win32 semaphore '%s'",
654 semaphore_close (struct semaphore *s)
660 dmsg (D_SEMAPHORE, "Closing Win32 semaphore '%s'", s->name);
667 * Special global semaphore used to protect network
688 msg (M_FATAL, "Cannot lock net command semaphore");