Unit Instance
Units API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/units/26598/?format=api
{ "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_linux-emulation/es/?format=api", "source": [ "When a futex queues a thread for sleeping it creates a <literal>working_proc</literal> structure and puts this structure to the list inside the futex structure then it just performs a <citerefentry><refentrytitle>tsleep</refentrytitle><manvolnum>9</manvolnum></citerefentry> to suspend the thread. The sleep can be timed out. After <citerefentry><refentrytitle>tsleep</refentrytitle><manvolnum>9</manvolnum></citerefentry> returns (the thread was woken up or it timed out) the <literal>working_proc</literal> structure is removed from the list and is destroyed. All this is done in the <function>futex_sleep</function> function. If we got woken up from <function>futex_wake</function> we have <varname>wp_new_futex</varname> set so we sleep on it. This way the actual requeueing is done in this function." ], "previous_source": "", "target": [ "Cuando un futex pone en cola un hilo para dormir, crea un <literal>working_proc</literal> estructura y coloca esta estructura en la lista dentro de la estructura futex, entonces solo realiza una <citerefentry><refentrytitle>tsleep</refentrytitle><manvolnum>9</manvolnum></citerefentry> suspender el hilo. El tiempo de sueño se puede agotar. Después <citerefentry><refentrytitle>tsleep</refentrytitle><manvolnum>9</manvolnum></citerefentry> devuelve (el hilo se despertó o se agotó el tiempo de espera) el <literal>working_proc</literal> La estructura se elimina de la lista y se destruye. Todo esto se hace en el <function>futex_sleep</function>función. Si nos despertaran de <function>futex_wake</function> Nosotros tenemos <varname>wp_new_futex</varname> establecido para que podamos dormir en él. De esta manera, la puesta en cola real se realiza en esta función.." ], "id_hash": 5152736203726570953, "content_hash": 5152736203726570953, "location": "article.translate.xml:2205", "context": "", "note": "(itstool) path: sect4/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 333, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 97, "source_unit": "https://translate-dev.freebsd.org/api/units/99730/?format=api", "priority": 100, "id": 26598, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_linux-emulation/es/?checksum=c7823246e46ac5c9", "url": "https://translate-dev.freebsd.org/api/units/26598/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:10:41.770743Z" }