1.关闭读写控制功能时,依旧保留sflags功能。

This commit is contained in:
MacRsh
2024-01-21 18:32:21 +08:00
parent 7b3c2f4231
commit 81d9c2b100

View File

@@ -309,8 +309,8 @@ struct mr_dev
struct mr_list clist; /**< Child list */ struct mr_list clist; /**< Child list */
size_t ref_count; /**< Reference count */ size_t ref_count; /**< Reference count */
#ifdef MR_USING_RDWR_CTL
int sflags; /**< Support flags */ int sflags; /**< Support flags */
#ifdef MR_USING_RDWR_CTL
volatile int lflags; /**< Lock flags */ volatile int lflags; /**< Lock flags */
#endif /* MR_USING_RDWR_CTL */ #endif /* MR_USING_RDWR_CTL */