pub fn release(&self) -> io::Result<()> {
        let result = unsafe { ReleaseSemaphore(*self.0, 1, ptr::null_mut()) };

        if result == 0 {
            return Err(io::Error::last_os_error());
        }

        Ok(())
    }
/// Release a permit on the semaphore.

Release a permit on the semaphore.
Release a permit on the semaphore .
pub fn release(&self) -> io::Result<()> {
        let result = unsafe { ReleaseSemaphore(*self.0, 1, ptr::null_mut()) };
        if result == 0 {
            return Err(io::Error::last_os_error());
        }
        Ok(())
    }
pub fn release ( & self ) -> io :: Result < ( ) > { let result = unsafe { ReleaseSemaphore ( * self . 0 , 1 , ptr :: null_mut ( ) ) } ; if result == 0 { return Err ( io :: Error :: last_os_error ( ) ) ; } Ok ( ( ) ) }
Release a permit on the semaphore.
Release a permit on the semaphore .
&self
&self