Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libc] Prevent changing ownership of the port once opened
The Port type has stipuations that the same exact mask used to open it needs to close it. This can currently be violated by calling its move constructor to put it somewhere else. We still need the move constructor to handle the open and closing functions. So, we simply make these constructors private and only allow a few classes to have move priviledges on it. Reviewed By: JonChesterfield, lntue Differential Revision: https://reviews.llvm.org/D150118
- Loading branch information