def synchronized(func):
def wrapper(*args):<EOL><INDENT>if args[<NUM_LIT:0>].synchronized:<EOL><INDENT>return func(*args)<EOL><DEDENT><DEDENT>return wrapper<EOL>
This decorator will run the function body only if the attribute
``synchronized`` of the current object is set.