Add atomic ops

This commit is contained in:
Siu Kwan Lam 2012-08-03 16:26:46 -07:00
commit 8381b25f66
7 changed files with 362 additions and 9 deletions

View file

@ -31,7 +31,7 @@ MAP_CTYPES = {
class CExecutor(object):
def __init__(self, mod_or_engine):
if isinstance(mod_or_engine, Module):
self.engine = le.ExecutionEngine.new(mod_or_engine)
self.engine = le.EngineBuilder.new(mod_or_engine).create()
else:
self.engine = mod_or_engine