mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
useful warning comment
This commit is contained in:
parent
b50e9caf31
commit
0b561695d6
1 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue