LINUX.ORG.RU

как поведет себя тред? (C, UNIX, thread)


0

0

Здраствуйте.

Как поведет себя тред, который внутри себя (тредовой фукнции) вызовет pthread_join(себя), где себя получит как параметр фукнции?

Или же это совсем неправильно так делать?

Спасибо.

★★★

http://www.opengroup.org/onlinepubs/009695399/functions/pthread_join.html

---cut---
ERRORS

    The pthread_join() function shall fail if:

    [ESRCH]
        No thread could be found corresponding to that specified by the given thread ID.

    The pthread_join() function may fail if:

    [EDEADLK]
        A deadlock was detected or the value of thread specifies the calling thread.
    [EINVAL]
        The value specified by thread does not refer to a joinable thread.

    The pthread_join() function shall not return an error code of [EINTR].
---cut---

// wbr

klalafuda ★☆☆
()
Ответ на: комментарий от klalafuda

спасибо, глупые мысли лезут в понедельник :(

fura13 ★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.