MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / tls_set_thread_area

Function tls_set_thread_area

src/tls.cpp:210–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210void
211tls_set_thread_area(Thread *thread)
212{
213 int mtcp_sys_errno __attribute__((unused));
214
215 if (mtcp_inline_syscall(arch_prctl, 2, ARCH_SET_FS, thread->tlsInfo.fs)
216 != 0) {
217 printf("\n*** DMTCP: Error restoring TLS.\n\n");
218 abort();
219 };
220
221 if (mtcp_inline_syscall(arch_prctl, 2, ARCH_SET_GS, thread->tlsInfo.gs)
222 != 0) {
223 printf("\n*** DMTCP: Error restoring TLS.\n\n");
224 abort();
225 }
226}
227#endif
228
229#ifdef __i386__

Callers 1

TLSInfo_RestoreTLSStateFunction · 0.85

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected