1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

- include/libxml/globals.h include/libxml/threads.h threads.c

testThreads.c: far more testing, cleaning up bugs
- *.c : make sure globals.h is always included.
Daniel
This commit is contained in:
Daniel Veillard
2001-10-17 15:58:35 +00:00
parent 7cc95c0b6a
commit 3c01b1d81b
33 changed files with 145 additions and 40 deletions

View File

@ -331,6 +331,23 @@ xmlGetGlobalState(void)
* *
************************************************************************/
/**
* xmlGetThreadId:
*
* xmlGetThreadId() find the current thread ID number
*
* Returns the current thread ID number
*/
int
xmlGetThreadId(void)
{
#ifdef HAVE_PTHREAD_H
return((int) pthread_self());
#else
return((int) 0);
#endif
}
/**
* xmlIsMainThread:
*