/*static char *SCCSID = "@(#)unlckoft.c	6.1 90/11/18";*/
/*static char *SCCSID = "@(#)unlckoft.c	13.2 90/01/25";*/
#ifndef  _BTXT
#define  _BTXT _BTXT
#define  _THISFILE "UNLCKOFT.C"
#include _THISFILE.C
#undef   _BTXT
#endif

#ifndef HDRS
#define HDRS

/***	unlckoft.c - unlock an OFT and wake up any waiters
 */

#include <os2def.h>
#include "const.h"
#include "chain.h"
#include "misc.h"
#include "buf.h"
#include "dir.h"
#include "storage.h"
#include "volume.h"
#include "tables.h"
#include "pb_ifs.h"
#include "lw.h"
#include "frame.h"
#include "fsdata.h"
#include "assert.h"
#include "log.h"

#endif

#include "pr_FSSUB.h"
#include "pr_MISC.h"

/**	UnLockOFT - Unlock OFT
 *
 *	Unlock an OFT and run any waiters.
 *
 *	ENTRY	poft (edi) = address of oft
 *
 *	EXIT	none
 */

void
UnLockOFT (poft)
POFT poft;
{
    ASSERT_OFT (poft);

    ClrLockOFT(poft);
    if (poft->cWaits != 0)
	WakeupOFT( poft );
}
