pub fn unlink(mut self) -> Result<(), SemalockError> {
        self.with(|s| {
            let code = unsafe { libc::sem_unlink(s.sem_name_cstring.as_ptr()) };

            if code == 0 {
                Ok(())
            } else {
                let e = errno::errno();
                Err(format!("sem_unlink {}: {}", e.0, e))
            }
        })
        .and_then(|a| a)
    }
/// Unlinks the semaphore used by this `Semalock` instance. Future
/// acquisitions will result in a new kernel object being created.
/// This does not affect the data of the file that this lock is
/// protecting. See POSIX `sem_unlink` for more details.
Unlinks the semaphore used by this `Semalock` instance. Future
acquisitions will result in a new kernel object being created.
This does not affect the data of the file that this lock is
protecting. See POSIX `sem_unlink` for more details.
Unlinks the semaphore used by this ` Semalock ` instance . Future acquisitions will result in a new kernel object being created . This does not affect the data of the file that this lock is protecting . See POSIX ` sem_unlink ` for more details .
pub fn unlink(mut self) -> Result<(), SemalockError> {
        self.with(|s| {
            let code = unsafe { libc::sem_unlink(s.sem_name_cstring.as_ptr()) };
            if code == 0 {
                Ok(())
            } else {
                let e = errno::errno();
                Err(format!("sem_unlink {}: {}", e.0, e))
            }
        })
        .and_then(|a| a)
    }
pub fn unlink ( mut self ) -> Result < ( ) , SemalockError > { self . with ( | s | { let code = unsafe { libc :: sem_unlink ( s . sem_name_cstring . as_ptr ( ) ) } ; if code == 0 { Ok ( ( ) ) } else { let e = errno :: errno ( ) ; Err ( format ! ( " " e 0 e ) ) } } ) . and_then ( | a | a ) }
Unlinks the semaphore used by this `Semalock` instance.
Unlinks the semaphore used by this ` Semalock ` instance .
mut self