다음을 통해 공유


LockIt Internal Class (Windows CE 5.0)

Send Feedback

This internal helper class handles locking and unlocking.

LockIt(_DERIVED_* p);

Parameters

  • p
    Pointer to the derived object.

Return Values

None.

Remarks

The constructor method locks the object, and the destructor method unlocks the object. To lock the object from inside your derived class, declare a local variable of type LockIt, as shown in the following example.

{
    LockIt lck(static_cast<_DERIVED_ *>(this)); // Locks the object.
} // lck goes out of scope, object is unlocked.

The methods in IMediaObjectImpl handle locking, so in most cases the derived class does not need to lock the object.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Dmoimpl.h.

See Also

DMO Reference | DMO Base Class Reference | IMediaObjectImpl

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.