Skip to content

Commit 66ba4db

Browse files
committed
RemoveTask(): fix variable shadowing
1 parent 3bef3cf commit 66ba4db

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/engine/renderer-vulkan/Thread/TaskList.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ void TaskRing::UnlockQueue( const uint8_t queue ) {
123123
queueLocks -= SetBit( 0ull, queue );
124124
}
125125

126-
void TaskRing::RemoveTask( const uint8_t queue, const uint8_t id ) {
126+
void TaskRing::RemoveTask( const uint8_t queue, const uint8_t taskID ) {
127127
LockQueue( queue );
128128

129-
UnSetBit( &queues[queue].availableTasks, id );
130-
queues[queue].tasks[id] = 0;
129+
UnSetBit( &queues[queue].availableTasks, taskID );
130+
queues[queue].tasks[taskID] = 0;
131131

132132
taskCount.fetch_sub( 1, std::memory_order_relaxed );
133133

src/engine/renderer-vulkan/Thread/TaskList.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ struct TaskRing {
6767
void LockQueue( const uint8_t queue );
6868
void UnlockQueue( const uint8_t queue );
6969

70-
void RemoveTask( const uint8_t queue, const uint8_t id );
70+
void RemoveTask( const uint8_t queue, const uint8_t taskID );
7171

7272
uint16_t AddToTaskRing( Task& task, const bool unlockQueueAfterAdd = true );
7373
};

0 commit comments

Comments
 (0)