MCPcopy Create free account
hub / github.com/MOBIN-F/Thread / set

Method set

src/com/mobin/thread/ProducerAndConsumer/EventStorage.java:23–34  ·  view source on GitHub ↗

set方法检查存储列表storage是否还有空间,如果已经满了,就调用wait方法挂起线程并等待 空余空间出现,当其他线程调用notifyAll方法时挂起的线程将被唤醒并且再次检查这个条件

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

getInstanceMethod · 0.80
runMethod · 0.80
runMethod · 0.80

Calls

no outgoing calls

Tested by 2

getInstanceMethod · 0.64
runMethod · 0.64