Eigenpoll : D wish list : User-defined sync function 

Define two opFunctions:
opSyncEnter();
opSyncLeave();

If this opFunction defined in some class, compiler must use them instead of default library implementation in synchronized statement:
synchronized(o) // Compiler generate here o.opSyncEnter() and start of try block
{
} //Compiler generate here finally { o.opSyncLeave(); } - to enforse leaving of critical section even in case of exception

Report this item for cleanup