Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SkSL::AutoAttachPoolToThread Class Reference

#include <SkSLPool.h>

Public Member Functions

 AutoAttachPoolToThread (Pool *p)
 
 ~AutoAttachPoolToThread ()
 

Detailed Description

Temporarily attaches a pool to the current thread within a scope.

Definition at line 76 of file SkSLPool.h.

Constructor & Destructor Documentation

◆ AutoAttachPoolToThread()

SkSL::AutoAttachPoolToThread::AutoAttachPoolToThread ( Pool p)
inline

Definition at line 78 of file SkSLPool.h.

78 : fPool(p) {
79 if (fPool) {
80 fPool->attachToThread();
81 }
82 }
void attachToThread()
Definition SkSLPool.cpp:48

◆ ~AutoAttachPoolToThread()

SkSL::AutoAttachPoolToThread::~AutoAttachPoolToThread ( )
inline

Definition at line 83 of file SkSLPool.h.

83 {
84 if (fPool) {
85 fPool->detachFromThread();
86 }
87 }
void detachFromThread()
Definition SkSLPool.cpp:54

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