6c1b65fe774d7b48d7ef1bb393b1ba98fbd60252 blob 266 bytes (raw)
1
2
3
4
5
6
7
8
9
10
11
| | #include "pthread_impl.h"
#include <threads.h>
void (mtx_destroy)(mtx_t *mut) {
/* Critical section protected by lock */
__lock(&mut->_mx_lock);
__mtx_t * ret = mut->_mx_mtx;
mut->_mx_mtx = 0;
__unlock(&mut->_mx_lock);
if (ret) __mtx_unref(ret);
}
|
debug log:
solving a1bea65 ...
found a1bea65 in https://inbox.vuxu.org/musl/1408049748.4951.134.camel@eris.loria.fr/
applying [1/1] https://inbox.vuxu.org/musl/1408049748.4951.134.camel@eris.loria.fr/
diff --git a/src/thread/mtx_destroy.c b/src/thread/mtx_destroy.c\r
new file mode 100644\r
index 0000000..a1bea65\r
1:7: trailing whitespace.
#include "pthread_impl.h"\r
1:8: trailing whitespace.
#include <threads.h>\r
1:9: trailing whitespace.
\r
1:10: trailing whitespace.
void (mtx_destroy)(mtx_t *mut) {\r
1:11: trailing whitespace.
/* Critical section protected by lock */\r
Checking patch src/thread/mtx_destroy.c...
Applied patch src/thread/mtx_destroy.c cleanly.
warning: squelched 6 whitespace errors
warning: 11 lines add whitespace errors.
index at:
100644 6c1b65fe774d7b48d7ef1bb393b1ba98fbd60252 src/thread/mtx_destroy.c
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).