## semaphore semaphore |

## Functions

int | vips_semaphore_up ()
int | vips_semaphore_upn ()
int | vips_semaphore_down ()
int | vips_semaphore_downn ()
int | vips_semaphore_down_timeout ()
void | vips_semaphore_destroy ()
void | vips_semaphore_init ()

## Types and Values

| VipsSemaphore

## Includes

    #include <vips/vips.h>

## Description

## Functions

### vips_semaphore_up ()

    int
    vips_semaphore_up (VipsSemaphore *s);

### vips_semaphore_upn ()

    int
    vips_semaphore_upn (VipsSemaphore *s,
                        int n);

### vips_semaphore_down ()

    int
    vips_semaphore_down (VipsSemaphore *s);

### vips_semaphore_downn ()

    int
    vips_semaphore_downn (VipsSemaphore *s,
                          int n);

### vips_semaphore_down_timeout ()

    int
    vips_semaphore_down_timeout (VipsSemaphore *s,
                                 gint64 timeout);

### vips_semaphore_destroy ()

    void
    vips_semaphore_destroy (VipsSemaphore *s);

### vips_semaphore_init ()

    void
    vips_semaphore_init (VipsSemaphore *s,
                         int v,
                         char *name);

## Types and Values

### VipsSemaphore

    typedef struct {
    	char *name;
    	int v;

    	GMutex *mutex;
    	GCond *cond;
    } VipsSemaphore;