Use consistent names.

This commit is contained in:
Bartosz Taudul 2017-11-25 13:14:16 +01:00
parent 48da593ab2
commit 0100266234
3 changed files with 5 additions and 5 deletions

View File

@ -54,8 +54,8 @@ public:
auto& tail = token->get_tail_index(); auto& tail = token->get_tail_index();
auto item = token->enqueue_begin<moodycamel::CanAlloc>( magic ); auto item = token->enqueue_begin<moodycamel::CanAlloc>( magic );
item->hdr.type = QueueType::GpuNewContext; item->hdr.type = QueueType::GpuNewContext;
item->gpuNewContext.cputime = tcpu; item->gpuNewContext.cpuTime = tcpu;
item->gpuNewContext.gputime = tgpu; item->gpuNewContext.gpuTime = tgpu;
item->gpuNewContext.thread = GetThreadHandle(); item->gpuNewContext.thread = GetThreadHandle();
item->gpuNewContext.context = m_context; item->gpuNewContext.context = m_context;
item->gpuNewContext.accuracyBits = bits; item->gpuNewContext.accuracyBits = bits;

View File

@ -136,8 +136,8 @@ struct QueueMessage
struct QueueGpuNewContext struct QueueGpuNewContext
{ {
int64_t cputime; int64_t cpuTime;
int64_t gputime; int64_t gpuTime;
uint64_t thread; uint64_t thread;
uint16_t context; uint16_t context;
uint8_t accuracyBits; uint8_t accuracyBits;

View File

@ -844,7 +844,7 @@ void View::ProcessGpuNewContext( const QueueGpuNewContext& ev )
assert( m_gpuCtxMap.find( ev.context ) == m_gpuCtxMap.end() ); assert( m_gpuCtxMap.find( ev.context ) == m_gpuCtxMap.end() );
auto gpu = m_slab.AllocInit<GpuCtxData>(); auto gpu = m_slab.AllocInit<GpuCtxData>();
gpu->timeDiff = int64_t( ev.cputime * m_timerMul - ev.gputime ); gpu->timeDiff = int64_t( ev.cpuTime * m_timerMul - ev.gpuTime );
gpu->thread = ev.thread; gpu->thread = ev.thread;
gpu->accuracyBits = ev.accuracyBits; gpu->accuracyBits = ev.accuracyBits;
gpu->count = 0; gpu->count = 0;