mem_alloc.cc的MemRequest类 #4
-
Beta Was this translation helpful? Give feedback.
Answered by
dengdd7561
Oct 28, 2022
Replies: 1 comment
-
下面的 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Yawningx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
下面的
free()
就是对上面_free()
的实现,这就是他说的另一种创建Event的方法。你可以到
mem_alloc.hh
里看看_free()
的定义,也就是EventWrapper<MemRequest, &MemRequest::free> _free;
,这个&MemRequest::free
就是下面的那个free()
。