Skip to content

Commit 3bfd11e

Browse files
committed
rename variable
1 parent b49d9e2 commit 3bfd11e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/shm_manager.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
namespace triton { namespace backend { namespace python {
4444
namespace bi = boost::interprocess;
4545

46-
static constexpr bi::managed_external_buffer::handle_t
47-
SHM_CONTROL_REGION_HANDLE{1};
46+
static constexpr bi::managed_external_buffer::handle_t kShmControlRegionHandle{
47+
1};
4848

4949
class CUDAMemoryPoolManager {
5050
public:
@@ -170,7 +170,7 @@ class SharedMemoryManager {
170170
void Deallocate(bi::managed_external_buffer::handle_t handle)
171171
{
172172
// Do not delete the control region, to avoid undefined behavior.
173-
if (handle == SHM_CONTROL_REGION_HANDLE) {
173+
if (handle == kShmControlRegionHandle) {
174174
return;
175175
}
176176
bi::scoped_lock<bi::interprocess_mutex> guard{*shm_mutex_};
@@ -182,7 +182,7 @@ class SharedMemoryManager {
182182
void DeallocateUnsafe(bi::managed_external_buffer::handle_t handle)
183183
{
184184
// Do not delete the control region, to avoid undefined behavior.
185-
if (handle == SHM_CONTROL_REGION_HANDLE) {
185+
if (handle == kShmControlRegionHandle) {
186186
return;
187187
}
188188
void* ptr = managed_buffer_->get_address_from_handle(handle);

0 commit comments

Comments
 (0)