Last change
on this file since 413 was 398, checked in by coas-nagasima, 5 years ago |
mbedTLS版Azure IoT Hub接続サンプルのソースコードを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
382 bytes
|
Line | |
---|
1 | #include <string.h>
|
---|
2 | #include "pthread_impl.h"
|
---|
3 | #include "libc.h"
|
---|
4 |
|
---|
5 | void __reset_tls()
|
---|
6 | {
|
---|
7 | pthread_t self = __pthread_self();
|
---|
8 | struct tls_module *p;
|
---|
9 | size_t i, n = (size_t)self->dtv[0];
|
---|
10 | if (n) for (p=libc.tls_head, i=1; i<=n; i++, p=p->next) {
|
---|
11 | if (!self->dtv[i]) continue;
|
---|
12 | memcpy(self->dtv[i], p->image, p->len);
|
---|
13 | memset((char *)self->dtv[i]+p->len, 0,
|
---|
14 | p->size - p->len);
|
---|
15 | }
|
---|
16 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.