Skip to content

mem_alloc.cc的MemRequest类 #4

Answered by dengdd7561
Yawningx asked this question in Q&A
Discussion options

You must be logged in to vote

下面的free()就是对上面_free()的实现,这就是他说的另一种创建Event的方法。
你可以到mem_alloc.hh里看看_free()的定义,也就是EventWrapper<MemRequest, &MemRequest::free> _free;,这个&MemRequest::free就是下面的那个free()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Yawningx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants