Minor refactor of CommandQueue class

Change-Id: Iab64ad133fe96402d9577b64380472729f0190a8
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2018-12-06 09:21:28 +01:00
committed by sys_ocldev
parent a0f2723589
commit 52fbf6473b
3 changed files with 20 additions and 33 deletions

View File

@ -54,22 +54,8 @@ CommandQueue *CommandQueue::create(Context *context,
CommandQueue::CommandQueue() : CommandQueue(nullptr, nullptr, 0) {
}
CommandQueue::CommandQueue(Context *context,
Device *deviceId,
const cl_queue_properties *properties) : taskCount(0),
taskLevel(0),
virtualEvent(nullptr),
context(context),
device(deviceId),
priority(QueuePriority::MEDIUM),
throttle(QueueThrottle::MEDIUM),
perfCountersEnabled(false),
perfCountersConfig(UINT32_MAX),
perfCountersUserRegistersNumber(0),
perfConfigurationData(nullptr),
perfCountersRegsCfgHandle(0),
perfCountersRegsCfgPending(false),
commandStream(nullptr) {
CommandQueue::CommandQueue(Context *context, Device *deviceId, const cl_queue_properties *properties)
: context(context), device(deviceId) {
if (context) {
context->incRefInternal();
}
@ -84,7 +70,7 @@ CommandQueue::CommandQueue(Context *context,
}
}
processProperties();
processProperties(properties);
}
CommandQueue::~CommandQueue() {