SerialJobQueueRef Class Reference 线程

#include <jobqueue.h>

Inheritance diagram for SerialJobQueueRef:

详细描述

Reference to a serial queue which guarantees serialized execution of the enqueued jobs. Serial execution does not guarantee the order of execution. The queue may reorder jobs if necessary.

公共成员函数

  SerialJobQueueRef ()
SerialJobQueueRef &  operator= (const JobQueueInterface::None &none)
SerialJobQueueRef &  operator= (std::nullptr_t t)
Result < UInt >  Init ( JOBQUEUETYPE type, Int threadCnt, JOBQUEUEMODE mode, const Char *name)=delete
-  Public Member Functions inherited from JobQueueRef
  MAXON_DEFAULT_REFERENCE_CONSTRUCTORS ( JobQueueRef , Reference)
MAXON_IMPLICIT   JobQueueRef (const JobQueueInterface::Current &)
MAXON_IMPLICIT   JobQueueRef (const JobQueueInterface::None &)
JobQueueRef &  operator= (const JobQueueInterface::Current &)
JobQueueRef &  operator= (const JobQueueInterface::None &)

静态公共成员函数

static Result < SerialJobQueueRef >  创建 ()
static Result < SerialJobQueueRef >  创建 ( JOBQUEUETYPE type, JOBQUEUEMODE mode= JOBQUEUEMODE::DEFAULT , const Char *name="Serial Job Queue ", UInt *ownerId=nullptr)

Private Types

using  Super = JobQueueRef

Member Typedef Documentation

◆  Super

using Super = JobQueueRef
private

构造函数 & 析构函数文档编制

◆  SerialJobQueueRef()

SerialJobQueueRef ( )

成员函数文档编制

◆  Create() [1/2]

static Result < SerialJobQueueRef > Create ( )
static

Creates and initializes a serial job queue.

返回
OK on success.

◆  Create() [2/2]

static Result < SerialJobQueueRef > Create ( JOBQUEUETYPE   type ,
JOBQUEUEMODE   mode = JOBQUEUEMODE::DEFAULT ,
const Char *  name = "Serial Job Queue" ,
UInt *  ownerId = nullptr  
)
static

Creates and initializes a serial job queue.

参数
[in] type Queue type, by default JOBQUEUETYPE::LOWPRIORITY .
[in] mode Scheduling options for the queue, the default is JOBQUEUEMODE::DEFAULT .
[in] name The queue name, by default "Serial Job Queue".
[out] ownerId Owner id of the queue (can be used for CancelAndWait).
返回
OK on success.

◆  operator=() [1/2]

SerialJobQueueRef & operator= ( const JobQueueInterface::None &  none )

◆  operator=() [2/2]

SerialJobQueueRef & operator= ( std::nullptr_t  t )

◆  Init()

Result < UInt > Init ( JOBQUEUETYPE   type ,
Int   threadCnt ,
JOBQUEUEMODE   mode ,
const Char *  name  
)
delete