diff options
author | Chris Sutcliffe <ir0nh34d@users.sourceforge.net> | 2010-01-25 22:58:03 +0000 |
---|---|---|
committer | Chris Sutcliffe <ir0nh34d@users.sourceforge.net> | 2010-01-25 22:58:03 +0000 |
commit | d359eb2e1fe2486bc8a7340b64f6c25387dd1585 (patch) | |
tree | fead62572254c03a9310417b1eb1dec6b762c340 /winsup/mingw/mthr_stub.c | |
parent | 8944c6af484e4bbaf5c494649b09cf60dc70a5ac (diff) | |
download | cygnal-d359eb2e1fe2486bc8a7340b64f6c25387dd1585.tar.gz cygnal-d359eb2e1fe2486bc8a7340b64f6c25387dd1585.tar.bz2 cygnal-d359eb2e1fe2486bc8a7340b64f6c25387dd1585.zip |
2010-01-25 Kai Tietz <kai.tietz@onevision.com>
Implement TLS Callback.
* tlsmcrt.c: New file.
* tlsmthread.c: Ditto.
* tlssup.c: Ditto.
* tlsthrd.c: Ditto.
* Makefile.in: Include new files.
* crt1.c: Implement TLS Callback.
* dllcrt1.c: Ditto.
* mthr_stub.c: Remove.
Diffstat (limited to 'winsup/mingw/mthr_stub.c')
-rw-r--r-- | winsup/mingw/mthr_stub.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/winsup/mingw/mthr_stub.c b/winsup/mingw/mthr_stub.c deleted file mode 100644 index e337b9a1c..000000000 --- a/winsup/mingw/mthr_stub.c +++ /dev/null @@ -1,44 +0,0 @@ -/* - * mthr_stub.c - * - * Implement Mingw thread-support stubs for single-threaded C++ apps. - * - * This file is used by if gcc is built with --enable-threads=win32 and - * iff gcc does *NOT* use -mthreads option. - * - * The -mthreads implementation is in mthr.c. - * - * Created by Mumit Khan <khan@nanotech.wisc.edu> - * - */ - -#define WIN32_LEAN_AND_MEAN -#include <windows.h> -#undef WIN32_LEAN_AND_MEAN - -/* - * __mingwthr_register_key_dtor (DWORD key, void (*dtor) (void *)) - * - * Public interface called by C++ exception handling mechanism in - * libgcc (cf: __gthread_key_create). - * No-op versions. - */ - -int -__mingwthr_key_dtor (DWORD key, void (*dtor) (void *)) -{ -#ifdef DEBUG - printf ("%s: ignoring key: (%ld) / dtor: (%x)\n", - __FUNCTION__, key, dtor); -#endif - return 0; -} - -int -__mingwthr_remove_key_dtor (DWORD key ) -{ -#ifdef DEBUG - printf ("%s: ignoring key: (%ld)\n", __FUNCTION__, key ); -#endif - return 0; -} |