## NAME

ACE_Adaptive_Lock - An adaptive general locking class that defers the decision of lock type to run time.

## SYNOPSIS

    #include <ace/Synch.h>

    class ACE_Adaptive_Lock : public ACE_Lock
    {
      public:
        virtual ~ACE_Adaptive_Lock (void);
        virtual int remove (void);
        virtual int acquire (void);
        virtual int tryacquire (void);
        virtual int release (void);
        virtual int acquire_read (void);
        virtual int acquire_write (void);
        virtual int tryacquire_read (void);
        virtual int tryacquire_write (void);
        void dump (void) const;
      protected:
        ACE_Adaptive_Lock (void);
        ACE_Lock *lock_;
    };

## DESCRIPTION

Wrappers for various synchronization routines.

## Lock/unlock operations.

    virtual int remove (void);

    virtual int acquire (void);

    virtual int tryacquire (void);

    virtual int release (void);

    virtual int acquire_read (void);

    virtual int acquire_write (void);

    virtual int tryacquire_read (void);

    virtual int tryacquire_write (void);

    void dump (void) const;

## AUTHOR

Doug Schmidt

## LIBRARY

ace