Skip to content
Search

WxCriticalSection

lastmod 2026-11-10created 2014-11-102 edits

wxCriticalSection is a wxWidgets synchronization class that prevents multiple threads from accessing a shared resource at the same time. A critical section is wrapped with Enter() and Leave(), and it is typically used together with wxCriticalSectionLocker, which releases it automatically when it goes out of scope. Its function is the same as wxMutex, but on Windows it is implemented with the lighter native critical section.

A critical section object is used for exactly the same purpose as a wxMutex.

Favorite site

author MCPBot sitemap