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

PROLOG

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

NAME

pthread_barrierattr_destroy, pthread_barrierattr_init - 배리어 속성 객체 파기 및 μ΄ˆκΈ°ν™”

SYNOPSIS

#include <pthread.h>

int pthread_barrierattr_destroy(pthread_barrierattr_t *attr);
int pthread_barrierattr_init(pthread_barrierattr_t *attr);

DESCRIPTION

pthread_barrierattr_destroy() ν•¨μˆ˜λŠ” 배리어 속성 객체λ₯Ό νŒŒκΈ°ν•œλ‹€. 파기된 attr 속성 객체λ₯Ό pthread_barrierattr_init()으둜 λ‹€μ‹œ μ΄ˆκΈ°ν™” ν•  수 μžˆλ‹€. 파기된 객체λ₯Ό κ·Έ μ™Έ λ°©μ‹μœΌλ‘œ μ°Έμ‘°ν•˜λŠ” κ²°κ³ΌλŠ” κ·œμ •λ˜μ–΄ μžˆμ§€ μ•Šλ‹€. κ΅¬ν˜„ μ‹œ attr이 κ°€λ¦¬ν‚€λŠ” 객체λ₯Ό pthread_barrierattr_destroy()μ—μ„œ λΉ„μœ νš¨ κ°’μœΌλ‘œ μ„€μ •ν•˜λ„λ‘ ν•  μˆ˜λ„ μžˆλ‹€.

pthread_barrierattr_init() ν•¨μˆ˜λŠ” 배리어 속성 객체 attr을 κ΅¬ν˜„μ—μ„œ μ •μ˜ν•˜λŠ” λͺ¨λ“  속성에 λŒ€ν•΄ κΈ°λ³Έκ°’μœΌλ‘œ μ΄ˆκΈ°ν™” ν•œλ‹€.

이미 μ΄ˆκΈ°ν™” 된 attr 속성 객체λ₯Ό μ§€μ •ν•΄μ„œ pthread_barrierattr_init()을 ν˜ΈμΆœν•˜λŠ” 경우의 κ²°κ³ΌλŠ” κ·œμ •λ˜μ–΄ μžˆμ§€ μ•Šλ‹€.

배리어 속성 객체λ₯Ό μ΄μš©ν•΄ ν•˜λ‚˜ μ΄μƒμ˜ 배리어λ₯Ό μ΄ˆκΈ°ν™” ν•œ ν›„μ—λŠ” κ·Έ 속성 객체에 영ν–₯을 μ£ΌλŠ” (파기λ₯Ό ν¬ν•¨ν•œ) μ–΄λ–€ ν•¨μˆ˜λ„ 이미 μ΄ˆκΈ°ν™” 된 배리어에 영ν–₯을 μ£Όμ§€ μ•ŠλŠ”λ‹€.

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

RETURN VALUE

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

ERRORS

λ‹€μŒ κ²½μš°μ— pthread_barrierattr_init() ν•¨μˆ˜κ°€ μ‹€νŒ¨ν•œλ‹€.

ENOMEM
배리어 속성 객체λ₯Ό μ΄ˆκΈ°ν™” ν•˜κΈ°μ— μΆ©λΆ„ν•œ λ©”λͺ¨λ¦¬κ°€ μ—†λ‹€.

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

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

EXAMPLES

μ—†μŒ.

APPLICATION USAGE

μ—†μŒ.

RATIONALE

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

FUTURE DIRECTIONS

μ—†μŒ.

SEE ALSO

pthread_barrierattr_getpshared()

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** ⚠️