FreeRDP
Loading...
Searching...
No Matches
CriticalSection Class Reference

Public Member Functions

 CriticalSection ()
 
 CriticalSection (const CriticalSection &other)=delete
 
 CriticalSection (CriticalSection &&other)=delete
 
CriticalSectionoperator= (const CriticalSection &other)=delete
 
CriticalSectionoperator= (const CriticalSection &&other)=delete
 
void lock ()
 
void unlock ()
 

Detailed Description

Definition at line 49 of file sdl_common_utils.hpp.

Constructor & Destructor Documentation

◆ CriticalSection()

CriticalSection::CriticalSection ( )

FreeRDP: A Remote Desktop Protocol Implementation SDL common utilitis

Copyright 2025 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.m Copyright 2025 Thincast Technologies GmbH

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition at line 23 of file sdl_common_utils.cpp.

24{
25 InitializeCriticalSection(&_section);
26}

◆ ~CriticalSection()

CriticalSection::~CriticalSection ( )

Definition at line 28 of file sdl_common_utils.cpp.

29{
30 DeleteCriticalSection(&_section);
31}

Member Function Documentation

◆ lock()

void CriticalSection::lock ( )

Definition at line 33 of file sdl_common_utils.cpp.

34{
35 EnterCriticalSection(&_section);
36}

◆ unlock()

void CriticalSection::unlock ( )

Definition at line 38 of file sdl_common_utils.cpp.

39{
40 LeaveCriticalSection(&_section);
41}

The documentation for this class was generated from the following files: