File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 4343namespace triton { namespace backend { namespace python {
4444namespace 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
4949class 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);
You can’t perform that action at this time.
0 commit comments