You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@guacamole.apache.org by "neandrake (via GitHub)" <gi...@apache.org> on 2023/08/29 15:17:27 UTC
[GitHub] [guacamole-server] neandrake commented on a diff in pull request #456: GUACAMOLE-1850: Add locking around cursor to ensure cairo display is not used while being recreated.
neandrake commented on code in PR #456:
URL: https://github.com/apache/guacamole-server/pull/456#discussion_r1308994650
##########
src/common/common/cursor.h:
##########
@@ -123,6 +123,14 @@ typedef struct guac_common_cursor {
*/
guac_timestamp timestamp;
+ /**
+ * Lock which restricts simultaneous access to the cursor, guaranteeing
+ * ordered modifications to the cursor and that incompatible operations
+ * do not occur simultaneously. This lock is for internal use within the
+ * cursor only.
+ */
+ pthread_mutex_t lock;
Review Comment:
Is it customary for private/internal fields to be named with an underscore or double-underscore?
```suggestion
pthread_mutex_t __lock;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@guacamole.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org