// Copyright 1997-2000 Omni Development, Inc.  All rights reserved.
//
// This software may only be used and reproduced according to the
// terms in the file OmniSourceLicense.html, which should be
// distributed with this project and can also be found at
// http://www.omnigroup.com/DeveloperResources/OmniSourceLicense.html.
//
// $Header: /Network/Source/CVS/OmniGroup/Frameworks/OmniFoundation/Locks.subproj/OFCondition.h,v 1.2 2000/03/16 19:30:37 bungi Exp $

#import <OmniFoundation/OFObject.h>

@class NSConditionLock;

@interface OFCondition : OFObject
{
    NSConditionLock *lock;
    struct {
        unsigned int cleared:1;
    } flags;
}

- init;

- (void)waitForCondition;

- (void)signalCondition;
- (void)broadcastCondition;

- (void)clearCondition;

@end
