This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/dm/include/SYS/LOCKING.H

29 lines
511 B
C++
Raw Permalink Normal View History

/* Copyright (C) 1986-1994 by Digital Mars. $Revision: 1.1.1.1 $ */
#if __SC__ || __RCC__
#pragma once
#endif
#ifndef __SYS_LOCKING_H
#define __SYS_LOCKING_H 1
#define _LK_UNLCK 0
#define _LK_LOCK 1
#ifdef M_UNIX
#define _LK_NBLCK 20
#else
#define _LK_NBLCK 2
#endif
#define _LK_RLCK 3
#define _LK_NBRLCK 4
#ifndef __STDC__
#define LK_UNLCK _LK_UNLCK
#define LK_LOCK _LK_LOCK
#define LK_NBLCK _LK_NBLCK
#define LK_RLCK _LK_RLCK
#define LK_NBRLCK _LK_NBRLCK
#endif
#endif