赞
踩
代码如下:
public class MyLock implements Lock{
Thread lockBy = null;
int lockCount = 0;
//锁标志
private boolean isLocked = false;
/*
* 加锁
* (non-Javadoc)
* @see java.util.concurrent.locks.Lock#lock()
*/
@Override
public synchronized void
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。