Blender V5.0
wmJobWorkerStatus Struct Reference

#include <WM_types.hh>

Public Attributes

bool do_update
bool stop
float progress
ReportListreports

Detailed Description

Communication/status data owned by the wmJob, and passed to the worker code when calling startjob callback.

OUTPUT members mean that they are defined by the worker thread, and read/used by the wmJob management code from the main thread. And vice-versa for INPUT members.

Warning
There is currently no thread-safety or synchronization when accessing these values. This is fine as long as:
  • All members are independent of each other, value-wise.
  • Each member is 'simple enough' that accessing it or setting it can be considered as atomic.
  • There is no requirement of immediate synchronization of these values between the main controlling thread (i.e. wmJob management code) and the worker thread.

Definition at line 1006 of file WM_types.hh.

Member Data Documentation

◆ do_update

◆ progress

◆ reports

◆ stop


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