parameters: (self)
return_statement: return gilptr
docstring: Ensure the GIL is acquired.
          The returned value must be consumed by gil_release().
docstring_summary: Ensure the GIL is acquired.
          The returned value must be consumed by gil_release().
docstring_tokens: Ensure the GIL is acquired . The returned value must be consumed by gil_release () .
function: def gil_ensure(self):
          """
          Ensure the GIL is acquired.
          The returned value must be consumed by gil_release().
          """
          gilptrty = Type.pointer(self.gil_state)
          fnty = Type.function(Type.void(), [gilptrty])
          fn = self._get_function(fnty, "numba_gil_ensure")
          gilptr = cgutils.alloca_once(self.builder, self.gil_state)
          self.builder.call(fn, [gilptr])
          return gilptr
function_tokens: def gil_ensure ( self ) : gilptrty = Type . pointer ( self . gil_state ) fnty = Type . function ( Type . void ( ) , [ gilptrty ] ) fn = self . _get_function ( fnty , "numba_gil_ensure" ) gilptr = cgutils . alloca_once ( self . builder , self . gil_state ) self . builder . call ( fn , [ gilptr ] ) return gilptr