# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2024-06-01 06:13+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-tumbleweed #, no-wrap msgid "pthread_cond_init" msgstr "" #. type: TH #: archlinux debian-unstable opensuse-tumbleweed #, no-wrap msgid "2024-05-19" msgstr "" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.8" msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-tumbleweed msgid "" "pthread_cond_init, pthread_cond_signal, pthread_cond_broadcast, " "pthread_cond_wait, pthread_cond_timedwait, pthread_cond_destroy - operations " "on conditions" msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: archlinux debian-unstable opensuse-tumbleweed #, no-wrap msgid "B<#include Epthread.hE>\n" msgstr "" #. type: Plain text #: archlinux debian-unstable opensuse-tumbleweed #, no-wrap msgid "BIB< = PTHREAD_COND_INITIALIZER;>\n" msgstr "" #. type: Plain text #: archlinux debian-unstable opensuse-tumbleweed #, no-wrap msgid "" "BIB<,>\n" "B< pthread_condattr_t *>IB<);>\n" "BIB<);>\n" "BIB<);>\n" "BIB<, pthread_mutex_t *>IB<);>\n" "BIB<, pthread_mutex_t *>IB<,>\n" "B< const struct timespec *>IB<);>\n" "BIB<);>\n" msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-tumbleweed msgid "" "A condition (short for ``condition variable'') is a synchronization device " "that allows threads to suspend execution and relinquish the processors until " "some predicate on shared data is satisfied. The basic operations on " "conditions are: signal the condition (when the predicate becomes true), and " "wait for the condition, suspending the thread execution until another thread " "signals the condition." msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-tumbleweed msgid "" "A condition variable must always be associated with a mutex, to avoid the " "race condition where a thread prepares to wait on a condition variable and " "another thread signals the condition just before the first thread actually " "waits on it." msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-tumbleweed msgid "" "B initializes the condition variable I, using the " "condition attributes specified in I, or default attributes if " "I is B. The LinuxThreads implementation supports no " "attributes for conditions, hence the I parameter is actually " "ignored." msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-tumbleweed msgid "" "Variables of type B can also be initialized statically, " "using the constant B." msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-tumbleweed msgid "" "B restarts one of the threads that are waiting on the " "condition variable I. If no threads are waiting on I, nothing " "happens. If several threads are waiting on I, exactly one is " "restarted, but it is not specified which." msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-tumbleweed msgid "" "B restarts all the threads that are waiting on the " "condition variable I. Nothing happens if no threads are waiting on " "I." msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-tumbleweed msgid "" "B atomically unlocks the I (as per " "B) and waits for the condition variable I to be " "signaled. The thread execution is suspended and does not consume any CPU " "time until the condition variable is signaled. The I must be locked " "by the calling thread on entrance to B. Before returning " "to the calling thread, B re-acquires I (as per " "B)." msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-tumbleweed msgid "" "Unlocking the mutex and suspending on the condition variable is done " "atomically. Thus, if all threads always acquire the mutex before signaling " "the condition, this guarantees that the condition cannot be signaled (and " "thus ignored) between the time a thread locks the mutex and the time it " "waits on the condition variable." msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-tumbleweed msgid "" "B atomically unlocks I and waits on I, " "as B does, but it also bounds the duration of the wait. " "If I has not been signaled within the amount of time specified by " "I, the mutex I is re-acquired and B " "returns the error B. The I parameter specifies an " "absolute time, with the same origin as B