From 287d5ef4d4497748658bc4127061c23b3b8c4421 Mon Sep 17 00:00:00 2001
From: shenxin <shenxin@basic.com>
Date: 星期一, 30 八月 2021 20:15:07 +0800
Subject: [PATCH] add bhome_node.go
---
src/bus_error.cpp | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/src/bus_error.cpp b/src/bus_error.cpp
index e44e5ef..49244cd 100644
--- a/src/bus_error.cpp
+++ b/src/bus_error.cpp
@@ -11,13 +11,20 @@
static pthread_key_t strerrorKey;
-static char *_bus_errlist[_bus_nerr] = {
+static const char *_bus_errlist[_bus_nerr] = {
"\0",
"Timed out",
"The other end is not inline",
"Key already in use",
"Network fault",
- "Send to self error"
+ "Send to self error",
+ "Receive from wrong end",
+ "Service stoped",
+ "Exceed resource limit",
+ "Service not supported",
+ "Resource busy",
+ "Resource not provide",
+ "Invalid parameters"
};
@@ -47,6 +54,10 @@
char *buf;
/* Make first caller allocate key for thread-specific data */
+ if (err == 0) {
+ err = EBUS_BASE;
+ }
+
s = pthread_once(&once, createKey);
if (s != 0)
err_exit(s, "pthread_once");
--
Gitblit v1.8.0