Home | History | Annotate | Download | only in scripts

Lines Matching defs:lock_guard

577     # Insert a lock_guard line
578 def lock_guard(self, indent):
579 return '%sstd::lock_guard<std::mutex> lock(global_lock);\n' % indent
661 create_obj_code += '%sstd::lock_guard<std::mutex> lock(global_lock);\n' % (indent)
698 destroy_obj_code += '%s std::lock_guard<std::mutex> lock(global_lock);\n' % indent
827 param_pre_code = '%s{\n%s%s%s%s}\n' % (' ', indent, self.lock_guard(indent), param_pre_code, indent)