Discussion on May 31 #119
Replies: 5 comments
-
|
Beta Was this translation helpful? Give feedback.
-
CoerceUnsized and DispatchFromDyn cannot be implemented for ShmNonNull, hence our mrpc's Box does not support casting to trait object (e.g., Box as Box). Just take a note on it. I don't think this is needed. |
Beta Was this translation helpful? Give feedback.
-
ShmView should not be !Send and !Sync. When ShmView is dropped or to_owned, it sends the addr of all recv_mr it uses (i.e., all SgList elements). Each recv_mr is uniquely belongs to a user-app thread / rpcadapter engine, it must be reposted by the same rpcadapter engine. So the user thread who receives the message (ShmView) must also be the one to dealloc it. |
Beta Was this translation helpful? Give feedback.
-
ShmView should have a lifetime less than that of the client/server |
Beta Was this translation helpful? Give feedback.
-
Consider the case where a user thread can have multiple clients / servers. Garbage collection becomes more compelx in this case. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions