summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorGavin.Bai <gavin_8724@163.com>2019-11-12 02:54:05 (GMT)
committer Gavin.Bai <gavin_8724@163.com>2019-08-27 06:31:11 (GMT)
commit59b423ac9e9bfef465d14731ccecd1cbd6002b35 (patch)
treefb9d9544c01d83c387479e81cbb7c0198e726183
parentf88adfdf33a6e64eca24c11601533eb4fa415dc4 (diff)
downloadAIC-OS-59b423ac9e9bfef465d14731ccecd1cbd6002b35.zip
Add GJB enable flag for gjb test.
-rw-r--r--SylixOS/posix/mqueue/mqueue.c4
-rw-r--r--SylixOS/posix/semaphore/semaphore.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/SylixOS/posix/mqueue/mqueue.c b/SylixOS/posix/mqueue/mqueue.c
index ccbf4fc..a28188b 100644
--- a/SylixOS/posix/mqueue/mqueue.c
+++ b/SylixOS/posix/mqueue/mqueue.c
@@ -753,6 +753,10 @@ mqd_t mq_open (const char *name, int flag, ...)
return (MQ_FAILED);
}
+#if LW_CFG_GJB7714_EN > 0
+ mq_open_method(MQ_OPEN_METHOD_GJB, NULL);
+#endif
+
__PX_LOCK(); /* ס posix */
pxnode = __pxnameSeach(name, -1);
if (pxnode) { /* ҵ */
diff --git a/SylixOS/posix/semaphore/semaphore.c b/SylixOS/posix/semaphore/semaphore.c
index 39d6a2f..6786557 100644
--- a/SylixOS/posix/semaphore/semaphore.c
+++ b/SylixOS/posix/semaphore/semaphore.c
@@ -278,6 +278,10 @@ sem_t *sem_open (const char *name, int flag, ...)
return (SEM_FAILED);
}
+#if LW_CFG_GJB7714_EN > 0
+ sem_open_method(SEM_OPEN_METHOD_GJB, NULL);
+#endif
+
__PX_LOCK(); /* ס posix */
pxnode = __pxnameSeach(name, -1);
if (pxnode) { /* ҵ */