Task scheduler: Use const qualifier in callbacks for parallel range

This commit is contained in:
2018-01-10 12:53:59 +01:00
parent 5614193745
commit f21f18b572
7 changed files with 14 additions and 14 deletions

View File

@@ -138,7 +138,7 @@ typedef struct CCGSubSurfCalcSubdivData {
static void ccgSubSurf__calcVertNormals_faces_accumulate_cb(
void *__restrict userdata,
int ptrIdx,
const int ptrIdx,
const ParallelRangeTLS *__restrict UNUSED(tls))
{
CCGSubSurfCalcSubdivData *data = userdata;
@@ -232,7 +232,7 @@ static void ccgSubSurf__calcVertNormals_faces_accumulate_cb(
static void ccgSubSurf__calcVertNormals_faces_finalize_cb(
void *__restrict userdata,
int ptrIdx,
const int ptrIdx,
const ParallelRangeTLS *__restrict UNUSED(tls))
{
CCGSubSurfCalcSubdivData *data = userdata;
@@ -273,7 +273,7 @@ static void ccgSubSurf__calcVertNormals_faces_finalize_cb(
static void ccgSubSurf__calcVertNormals_edges_accumulate_cb(
void *__restrict userdata,
int ptrIdx,
const int ptrIdx,
const ParallelRangeTLS *__restrict UNUSED(tls))
{
CCGSubSurfCalcSubdivData *data = userdata;
@@ -422,7 +422,7 @@ static void ccgSubSurf__calcVertNormals(CCGSubSurf *ss,
static void ccgSubSurf__calcSubdivLevel_interior_faces_edges_midpoints_cb(
void *__restrict userdata,
int ptrIdx,
const int ptrIdx,
const ParallelRangeTLS *__restrict UNUSED(tls))
{
CCGSubSurfCalcSubdivData *data = userdata;
@@ -512,7 +512,7 @@ static void ccgSubSurf__calcSubdivLevel_interior_faces_edges_midpoints_cb(
static void ccgSubSurf__calcSubdivLevel_interior_faces_edges_centerpoints_shift_cb(
void *__restrict userdata,
int ptrIdx,
const int ptrIdx,
const ParallelRangeTLS *__restrict UNUSED(tls))
{
CCGSubSurfCalcSubdivData *data = userdata;
@@ -620,7 +620,7 @@ static void ccgSubSurf__calcSubdivLevel_interior_faces_edges_centerpoints_shift_
static void ccgSubSurf__calcSubdivLevel_verts_copydata_cb(
void *__restrict userdata,
int ptrIdx,
const int ptrIdx,
const ParallelRangeTLS *__restrict UNUSED(tls))
{
CCGSubSurfCalcSubdivData *data = userdata;

View File

@@ -1436,7 +1436,7 @@ typedef struct MaskRasterizeBufferData {
static void maskrasterize_buffer_cb(
void *__restrict userdata,
int y,
const int y,
const ParallelRangeTLS *__restrict UNUSED(tls))
{
MaskRasterizeBufferData *data = userdata;

View File

@@ -434,7 +434,7 @@ AutoTrackContext *BKE_autotrack_context_new(MovieClip *clip,
static void autotrack_context_step_cb(
void *__restrict userdata,
int track,
const int track,
const ParallelRangeTLS *__restrict UNUSED(tls))
{
AutoTrackContext *context = userdata;

View File

@@ -1505,7 +1505,7 @@ typedef struct TrackingStabilizeFrameInterpolationData {
static void tracking_stabilize_frame_interpolation_cb(
void *__restrict userdata,
int j,
const int j,
const ParallelRangeTLS *__restrict UNUSED(tls))
{
TrackingStabilizeFrameInterpolationData *data = userdata;

View File

@@ -421,7 +421,7 @@ typedef struct BMLoopInterpMultiresData {
static void loop_interp_multires_cb(
void *__restrict userdata,
int ix,
const int ix,
const ParallelRangeTLS *__restrict UNUSED(tls))
{
BMLoopInterpMultiresData *data = userdata;

View File

@@ -109,7 +109,7 @@ typedef struct CalculatePengindData {
static void calculate_pending_func(
void *__restrict data_v,
int i,
const int i,
const ParallelRangeTLS *__restrict /*tls*/)
{
CalculatePengindData *data = (CalculatePengindData *)data_v;

View File

@@ -85,7 +85,7 @@ void lib_id_recalc_data_tag(Main *bmain, ID *id)
void flush_init_operation_node_func(
void *__restrict data_v,
int i,
const int i,
const ParallelRangeTLS *__restrict /*tls*/)
{
Depsgraph *graph = (Depsgraph *)data_v;
@@ -95,7 +95,7 @@ void flush_init_operation_node_func(
void flush_init_id_node_func(
void *__restrict data_v,
int i,
const int i,
const ParallelRangeTLS *__restrict /*tls*/)
{
Depsgraph *graph = (Depsgraph *)data_v;
@@ -297,7 +297,7 @@ void deg_graph_flush_updates(Main *bmain, Depsgraph *graph)
static void graph_clear_func(
void *__restrict data_v,
int i,
const int i,
const ParallelRangeTLS *__restrict /*tls*/)
{
Depsgraph *graph = (Depsgraph *)data_v;