/*
 * $Id: sync.h,v 1.2 1998/03/10 22:06:35 abakun Exp $
 */

#ifndef SYNC_H
#define SYNC_H

#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include <unistd.h>

#include "func_private.h"

#define synchronize(x)      for(;sync_acquire_lock(x);sync_release_lock(x))

func_public void   *sync_on(key_t thekey);
func_public void    sync_off(void *ptr);
func_public int     sync_acquire_lock(void *ptr);
func_public int     sync_release_lock(void *ptr);

#endif				/* SYNC_H */

/*
 * $Log: sync.h,v $
 * Revision 1.2  1998/03/10 22:06:35  abakun
 * added semicolons after forward declarations
 *
 * Revision 1.1  1998/03/09 16:18:56  abakun
 * Initial revision
 *
 */
