Lock() public method

public Lock ( ) : void
return void
示例#1
0
        protected bool Initialize(Inferior target)
        {
            try {
                mutex.Lock();
                this.target = target;

                handle = mono_debugger_thread_db_init(
                    target.PID, global_lookup_func, read_memory_func,
                    write_memory_func);

                return(handle != IntPtr.Zero);
            } finally {
                this.target = null;
                mutex.Unlock();
            }
        }