You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when we open a port , it will call function "open_port_internal" and annotation say "If the port doesn't exist in the system a port with port_id is created。otherwise the existing port is opened.“
But if the port is existing,with the openmode is ReadShared,. Now we open as ReadExclusive. So port_node->is_opened_read_exclusive become TRUE from FALSE. But "ReadShared (multiple listeners / multiple writers): Once a port is opened ReadShared cannot be opened ReadExclusive.", now a port is opened ReadShared we can open it ReadExclusive successful. Why?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The OpenMode defined as that:
But when we open a port , it will call function "open_port_internal" and annotation say "If the port doesn't exist in the system a port with port_id is created。otherwise the existing port is opened.“
But if the port is existing,with the openmode is ReadShared,. Now we open as ReadExclusive. So port_node->is_opened_read_exclusive become TRUE from FALSE. But "ReadShared (multiple listeners / multiple writers): Once a port is opened ReadShared cannot be opened ReadExclusive.", now a port is opened ReadShared we can open it ReadExclusive successful. Why?
Beta Was this translation helpful? Give feedback.
All reactions