标签:bsp unit cond oid 源码 except 判断 异常 div
void lock(); 锁 void lockInterruptibly() throws InterruptedException; 在等待锁时被中断会抛异常 boolean tryLock(); 判断锁是否可用,可用就获取 boolean tryLock(long time, TimeUnit unit) throws InterruptedException; 如果没取到锁进入中断等待 void unlock(); 解锁 Condition newCondition(); 创建条件
标签:bsp unit cond oid 源码 except 判断 异常 div
原文地址:https://www.cnblogs.com/ctxsdhy/p/12324561.html