Multithreaded Programming Guide

sema_trywait Syntax

#include <thread.h>

int sema_trywait(sema_t *sp);