You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/dlt/dlt_user.h.in
-21Lines changed: 0 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -109,27 +109,6 @@ extern "C" {
109
109
110
110
# defineDLT_USER_RESENDBUF_MAX_SIZE (DLT_USER_BUF_MAX_SIZE + 100) /**< Size of resend buffer; Max DLT message size is 1390 bytes plus some extra header space */
111
111
112
-
/* Use a semaphore or mutex from your OS to prevent concurrent access to the DLT buffer. */
113
-
#defineDLT_SEM_LOCK() do{ \
114
-
int err_check = pthread_mutex_lock(&dlt_mutex); \
115
-
if (err_check != 0) { \
116
-
dlt_vlog(LOG_ERR, \
117
-
"DLT sem lock error: %d - %s pid=%i\n", \
118
-
err_check, \
119
-
strerror(err_check), \
120
-
getpid()); \
121
-
}} while(false)
122
-
123
-
#defineDLT_SEM_FREE() do{ \
124
-
int err_check = pthread_mutex_unlock(&dlt_mutex); \
125
-
if (err_check != 0) { \
126
-
dlt_vlog(LOG_ERR, \
127
-
"DLT sem free error: %d - %s in pid=%i\n", \
128
-
err_check, \
129
-
strerror(err_check), \
130
-
getpid()); \
131
-
}} while(false)
132
-
133
112
/**
134
113
* This structure is used for every context used in an application.
0 commit comments