# critical_section

## Summary

A PPL-compatible mutex.

## Syntax

    class critical_section;

## Header

    #include "tbb/critical_section.h"

## Description

A critical_section implements a PPL `critical_section`. Its functionality is a subset of the functionality of a `tbb::mutex`.

## Members

    namespace tbb {
            class critical_section {
            public:
                critical_section();
                ~critical_section();
                void lock();
                bool try_lock();
                void unlock();

                class scoped_lock {
                public:
                    scoped_lock( critical_section& mutex );
                    ~scoped_lock();
                };
           };
        }

Parent topic: PPL Compatibility