pthread_condattr_getpshared(3p) - wariua/manpages-ko GitHub Wiki

PROLOG

이 맀뉴얼 νŽ˜μ΄μ§€λŠ” POSIX ν”„λ‘œκ·Έλž˜λ¨Έ λ§€λ‰΄μ–Όμ˜ 일뢀이닀. 이 μΈν„°νŽ˜μ΄μŠ€μ˜ λ¦¬λˆ…μŠ€ κ΅¬ν˜„μ— 차이가 μžˆμ„ 수 있으며 (μƒμ„Έν•œ λ¦¬λˆ…μŠ€ λ™μž‘ 방식은 ν•΄λ‹Ή λ¦¬λˆ…μŠ€ 맀뉴얼 νŽ˜μ΄μ§€ μ°Έκ³ ) λ¦¬λˆ…μŠ€μ—μ„œ 이 μΈν„°νŽ˜μ΄μŠ€κ°€ κ΅¬ν˜„λ˜μ–΄ μžˆμ§€ μ•Šμ„ μˆ˜λ„ μžˆλ‹€.

NAME

pthread_condattr_getpshared, pthread_condattr_setpshared - ν”„λ‘œμ„ΈμŠ€ 곡유 쑰건 λ³€μˆ˜ 속성 μ–»κΈ° 및 μ„€μ •ν•˜κΈ°

SYNOPSIS

#include <pthread.h>

int pthread_condattr_getpshared(const pthread_condattr_t *restrict attr,
    int *restrict pshared);
int pthread_condattr_setpshared(pthread_condattr_t *attr,
    int pshared);

DESCRIPTION

pthread_condattr_getpshared() ν•¨μˆ˜λŠ” attr이 κ°€λ¦¬ν‚€λŠ” 속성 κ°μ²΄λ‘œλΆ€ν„° process-shared μ†μ„±μ˜ 값을 μ–»λŠ”λ‹€.

pthread_condattr_setpshared() ν•¨μˆ˜λŠ” attr이 κ°€λ¦¬ν‚€λŠ” μ΄ˆκΈ°ν™” 된 속성 객체의 process-shared 속성을 μ„€μ •ν•œλ‹€.

process-shared 속성을 PTHREAD_PROCESS_SHARED둜 μ„€μ •ν•˜λ©΄ 쑰건 λ³€μˆ˜λ₯Ό ν• λ‹Ήν•œ λ©”λͺ¨λ¦¬μ— μ ‘κ·Ό κ°€λŠ₯ν•œ 아무 μŠ€λ ˆλ“œλ‚˜ κ·Έ 쑰건 λ³€μˆ˜λ₯Ό μ‘°μž‘ν•  수 있게 ν—ˆμš©ν•˜λ©°, μ—¬λŸ¬ ν”„λ‘œμ„ΈμŠ€κ°€ κ³΅μœ ν•˜λŠ” λ©”λͺ¨λ¦¬μ— 쑰건 λ³€μˆ˜λ₯Ό ν• λ‹Ήν•œ κ²½μš°μ—λ„ λ§ˆμ°¬κ°€μ§€μ΄λ‹€. process-shared 속성이 PTHREAD_PROCESS_PRIVATE이면 쑰건 λ³€μˆ˜λ₯Ό μ΄ˆκΈ°ν™” ν•œ μŠ€λ ˆλ“œμ™€ 같은 ν”„λ‘œμ„ΈμŠ€ 내에 μƒμ„±λœ μŠ€λ ˆλ“œλ§Œ κ·Έ 쑰건 λ³€μˆ˜λ₯Ό μ‘°μž‘ν•  수 μžˆλ‹€. 그런 쑰건 λ³€μˆ˜λ₯Ό λ‹€λ₯Έ ν”„λ‘œμ„ΈμŠ€μ˜ μŠ€λ ˆλ“œκ°€ μ‘°μž‘ν•˜λ €κ³  μ‹œλ„ν•˜λŠ” 경우의 λ™μž‘ 방식은 κ·œμ •λ˜μ–΄ μžˆμ§€ μ•Šλ‹€. μ†μ„±μ˜ 기본값은 PTHREAD_PROCESS_PRIVATE이닀.

pthread_condattr_getpshared()λ‚˜ pthread_condattr_setpshared()의 attr 인자둜 μ§€μ •ν•œ 값이 μ΄ˆκΈ°ν™” 된 쑰건 λ³€μˆ˜ 속성 객체λ₯Ό 가리킀고 μžˆμ§€ μ•Šμ€ 경우의 λ™μž‘ 방식은 κ·œμ •λ˜μ–΄ μžˆμ§€ μ•Šλ‹€.

RETURN VALUE

성곡 μ‹œ pthread_condattr_setpshared() ν•¨μˆ˜λŠ” 0을 λ°˜ν™˜ν•œλ‹€. μ•„λ‹ˆλ©΄ 였λ₯˜λ₯Ό λ‚˜νƒ€λ‚΄λŠ” 였λ₯˜ 번호λ₯Ό λ°˜ν™˜ν•œλ‹€.

성곡 μ‹œ pthread_condattr_getpshared() ν•¨μˆ˜λŠ” 0을 λ°˜ν™˜ν•˜λ©° attr의 process-shared 속성을 pshared λ§€κ°œλ³€μˆ˜κ°€ κ°€λ¦¬ν‚€λŠ” 객체에 μ €μž₯ν•œλ‹€. μ•„λ‹ˆλ©΄ 였λ₯˜λ₯Ό λ‚˜νƒ€λ‚΄λŠ” 였λ₯˜ 번호λ₯Ό λ°˜ν™˜ν•œλ‹€.

ERRORS

λ‹€μŒ κ²½μš°μ— pthread_condattr_setpshared() ν•¨μˆ˜κ°€ μ‹€νŒ¨ν•  μˆ˜λ„ μžˆλ‹€.

EINVAL
속성에 μ§€μ •ν•œ μƒˆ 값이 κ·Έ μ†μ„±μ˜ μ λ²•ν•œ κ°’ λ²”μœ„λ₯Ό λ²—μ–΄λ‚œλ‹€.

이 ν•¨μˆ˜λ“€μ€ 였λ₯˜ μ½”λ“œ [EINTR]을 λ°˜ν™˜ν•˜μ§€ μ•ŠλŠ”λ‹€.

μ΄ν•˜λŠ” κ·œλ²”μ μ΄μ§€ μ•Šμ€ λ‚΄μš©μ΄λ‹€.

EXAMPLES

μ—†μŒ.

APPLICATION USAGE

μ—†μŒ.

RATIONALE

pthread_condattr_getpshared()λ‚˜ pthread_condattr_setpshared()의 attr 인자둜 μ§€μ •ν•œ 값이 μ΄ˆκΈ°ν™” 된 쑰건 λ³€μˆ˜ 속성 객체λ₯Ό 가리킀고 μžˆμ§€ μ•ŠμŒμ„ κ΅¬ν˜„μ—μ„œ κ°μ§€ν•˜λŠ” 경우 ν•¨μˆ˜λ₯Ό μ‹€νŒ¨ μ²˜λ¦¬ν•˜κ³  [EINVAL] 였λ₯˜λ₯Ό λ³΄κ³ ν•˜κΈ°λ₯Ό ꢌμž₯ν•œλ‹€.

FUTURE DIRECTIONS

μ—†μŒ.

SEE ALSO

pthread_create(), pthread_cond_destroy(), pthread_condattr_destroy(), pthread_mutex_destroy()

POSIX.1-2008 Base Definitions ꢌ, <pthread.h>

COPYRIGHT

Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, Copyright (C) 2013 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. (This is POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.unix.org/online.html .

Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .


2013

⚠️ **GitHub.com Fallback** ⚠️