/*static char *SCCSID = "@(#)gfbwait.c	6.2 92/01/31";*/
#include <os2def.h>
#include "const.h"
#include "misc.h"
#include "chain.h"
#include "buf.h"
#include "dir.h"
#include "volume.h"
#include "storage.h"
#include "tables.h"
#include "pb_ifs.h"
#include "lw.h"
#include "frame.h"
#include "fsdata.h"
#include "log.h"

#include "pr_CACHE.h"
#include "pr_MISC.h"


/*
 ***	GFBWait - Wait for GFB to finish locking
 *
 *	GFB sets an interlock on cache failures, this routine is
 *	called to wait for the interlock to clear.  See GFB
 *
 *	ENTRY	none
 *	EXIT	fGFBActive is set to 0
 *
 */

void
GFBWait (PFRAME pfrm)
{
    /*	Blocks until GFB is not active.  */
    while (fGFBActive) {
	BlockMisc (&pGFBWaitChain, LOB_GFB, pfrm);
    }
}

///*
// ***	GFBWaitFar -- far envelope for GFBWait
// */
//void far
//GFBWaitFar(PFRAME pfrm)
//{
//    GFBWait(pfrm);
//}
