Partager via


CCritSec::Lock (Compact 2013)

3/26/2014

Locks the critical section object.

Syntax

void Lock( );

Parameters

None.

Return Value

None.

Remarks

This member function locks the critical section object.

You can make multiple lock calls on the same thread, but the CCritSec::Unlock member function must be called a corresponding number of times before the object is unlocked.

If the object is locked by another thread, the CCritSec::Lock member function blocks until either the object is released or a "possible deadlock" exception occurs.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CCritSec Class