useful warning comment

This commit is contained in:
rsc 2005-01-16 21:31:21 +00:00
parent b50e9caf31
commit 0b561695d6

View file

@ -510,6 +510,15 @@ static void
threadmainstart(void *v)
{
USED(v);
/*
* N.B. This call to proc() is a program's first call (indirectly) to a
* pthreads function while executing on a non-pthreads-allocated
* stack. If the pthreads implementation is using the stack pointer
* to locate the per-thread data, then this call will blow up.
* This means the pthread implementation is not suitable for
* running under libthread. Time to write your own. Sorry.
*/
threadmainproc = proc();
threadmain(threadargc, threadargv);
}