add lock_count to support recursive lock

This commit is contained in:
Vincent Wei
2020-02-06 10:56:20 +08:00
parent c797ed6bdc
commit 75ba1cfdaa
2 changed files with 7 additions and 1 deletions

View File

@@ -1162,6 +1162,9 @@ typedef struct _ZNODEHEADER {
/** Client id of the z-node. */
int cli;
/** The lock count (only for compositing schema). */
int lock_count;
#ifdef _MGSCHEMA_COMPOSITING
/** The count for changes of the content. */
unsigned int changes;
@@ -1190,6 +1193,8 @@ typedef struct _ZNODEHEADER {
#else
/** The z-node change age; no use for compositing schema */
unsigned int age;
/** The dirty recetangle of this z-node; no use for compositing schema */
RECT dirty_rc;
#endif
} ZNODEHEADER;

View File

@@ -76,6 +76,7 @@ typedef struct _ZORDERNODE {
RECT rc; /* rect on the screen */
int cli; /* which client? */
unsigned int lock_count; /* the lock count */
#ifdef _MGSCHEMA_COMPOSITING
unsigned int changes; /* count for changes of content */
@@ -87,7 +88,7 @@ typedef struct _ZORDERNODE {
const RECT* dirty_rcs; /* the pointer to the dirty rectangles */
#else /* defined _MGSCHEMA_COMPOSITING */
unsigned int age; /* znode age */
RECT dirty_rc; /* dirty rect */
RECT dirty_rc; /* dirty rectangle */
#endif /* not defined _MGSCHEMA_COMPOSITING */
int idx_mask_rect; /* the first position of the mask rects. */