xiaoxiang781216 commented on code in PR #3642:
URL: https://github.com/apache/nuttx-apps/pull/3642#discussion_r3764224711


##########
system/nxpkg/pkg_store.c:
##########
@@ -35,10 +40,84 @@
 
 #include "pkg.h"
 
+/****************************************************************************
+ * Pre-processor Definitions
+ ****************************************************************************/
+
+#define PKG_LOCK_RECORD_MAGIC "NXPKG1"
+#define PKG_LOCK_RECORD_SIZE  64
+
+/****************************************************************************
+ * Private Data
+ ****************************************************************************/
+
+static pthread_once_t g_pkg_lock_boot_once = PTHREAD_ONCE_INIT;

Review Comment:
   could we remove the global changed variable from nxpkg? so multiple 
instances could run concurrently.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to