FastLED 3.9.15
Loading...
Searching...
No Matches
mutex.h File Reference

Detailed Description

Platform-independent mutex interface.

This header provides fl::mutex, fl::recursive_mutex, and fl::unique_lock by delegating to platform-specific implementations in platforms/mutex.h.

The platform layer handles all platform-specific details including:

  • FASTLED_MULTITHREADED detection and definition
  • Mutex implementation (FreeRTOS, pthread, std::mutex, or no-op)
  • unique_lock implementation (std::unique_lock or custom)
  • Lock constructor tag types (defer_lock, try_to_lock, adopt_lock)

Definition in file mutex.h.

#include "platforms/mutex.h"
+ Include dependency graph for mutex.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fl
 Base definition for an LED controller.
 

Typedefs

using fl::mutex = fl::platforms::mutex
 
using fl::recursive_mutex = fl::platforms::recursive_mutex