<?xml version='1.0' encoding='UTF-8' standalone='no'?> <doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.16"> <compounddef id="ubthread_8h" kind="file" language="C++"> <compoundname>ubthread.h</compoundname> <includes refid="include_2sys_2types_8h" local="no">sys/types.h</includes> <includes refid="sched_8h" local="no">ubixos/sched.h</includes> <includes refid="time_8h" local="no">ubixos/time.h</includes> <includedby refid="sys__arch_8h" local="no">C:/Dev/git/UbixOS/sys/include/net/arch/sys_arch.h</includedby> <includedby refid="sys_2elf_8h" local="no">C:/Dev/git/UbixOS/sys/include/sys/elf.h</includedby> <includedby refid="access_8h" local="no">C:/Dev/git/UbixOS/sys/include/ubixos/access.h</includedby> <includedby refid="sem_8h" local="no">C:/Dev/git/UbixOS/sys/include/ubixos/sem.h</includedby> <includedby refid="ubthread_8c" local="no">C:/Dev/git/UbixOS/sys/kernel/ubthread.c</includedby> <includedby refid="sys__arch_8c" local="no">C:/Dev/git/UbixOS/sys/net/net/sys_arch.c</includedby> <incdepgraph> <node id="21"> <label>ufs/ufs.h</label> <link refid="ufs_8h"/> <childnode refid="2" relation="include"> </childnode> <childnode refid="22" relation="include"> </childnode> </node> <node id="25"> <label>sys/tss.h</label> <link refid="tss_8h"/> <childnode refid="2" relation="include"> </childnode> </node> <node id="27"> <label>sys/io.h</label> <link refid="io_8h"/> </node> <node id="24"> <label>ubixos/tty.h</label> <link refid="tty_8h"/> <childnode refid="2" relation="include"> </childnode> </node> <node id="14"> <label>i386/cpu.h</label> <link refid="i386_2cpu_8h"/> <childnode refid="2" relation="include"> </childnode> </node> <node id="4"> <label>sys/select.h</label> <link refid="select_8h"/> <childnode refid="5" relation="include"> </childnode> <childnode refid="3" relation="include"> </childnode> <childnode refid="6" relation="include"> </childnode> <childnode refid="7" relation="include"> </childnode> <childnode refid="8" relation="include"> </childnode> </node> <node id="17"> <label>vfs/inode.h</label> <link refid="inode_8h"/> <childnode refid="2" relation="include"> </childnode> <childnode refid="18" relation="include"> </childnode> <childnode refid="19" relation="include"> </childnode> <childnode refid="20" relation="include"> </childnode> <childnode refid="21" relation="include"> </childnode> </node> <node id="1"> <label>C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h</label> <link refid="ubthread_8h"/> <childnode refid="2" relation="include"> </childnode> <childnode refid="9" relation="include"> </childnode> <childnode refid="26" relation="include"> </childnode> </node> <node id="8"> <label>sys/_sigset.h</label> <link refid="__sigset_8h"/> <childnode refid="3" relation="include"> </childnode> </node> <node id="23"> <label>vfs/mount.h</label> <link refid="mount_8h"/> <childnode refid="2" relation="include"> </childnode> </node> <node id="16"> <label>sys/resource.h</label> <link refid="resource_8h"/> <childnode refid="3" relation="include"> </childnode> </node> <node id="13"> <label>sys/trap.h</label> <link refid="trap_8h"/> <childnode refid="14" relation="include"> </childnode> </node> <node id="2"> <label>sys/types.h</label> <link refid="include_2sys_2types_8h"/> <childnode refid="3" relation="include"> </childnode> <childnode refid="4" relation="include"> </childnode> </node> <node id="10"> <label>vfs/file.h</label> <link refid="include_2vfs_2file_8h"/> <childnode refid="2" relation="include"> </childnode> <childnode refid="11" relation="include"> </childnode> <childnode refid="12" relation="include"> </childnode> <childnode refid="17" relation="include"> </childnode> <childnode refid="23" relation="include"> </childnode> <childnode refid="21" relation="include"> </childnode> </node> <node id="20"> <label>fs/msdos_fs.h</label> <link refid="msdos__fs_8h"/> </node> <node id="15"> <label>sys/signal.h</label> <link refid="sys_2signal_8h"/> <childnode refid="2" relation="include"> </childnode> </node> <node id="19"> <label>fs/pipe_fs.h</label> <link refid="pipe__fs_8h"/> </node> <node id="18"> <label>ubixos/wait.h</label> <link refid="wait_8h"/> </node> <node id="12"> <label>sys/thread.h</label> <link refid="thread_8h"/> <childnode refid="2" relation="include"> </childnode> <childnode refid="13" relation="include"> </childnode> <childnode refid="15" relation="include"> </childnode> <childnode refid="16" relation="include"> </childnode> </node> <node id="5"> <label>sys/cdefs.h</label> <link refid="cdefs_8h"/> </node> <node id="26"> <label>ubixos/time.h</label> <link refid="time_8h"/> <childnode refid="2" relation="include"> </childnode> <childnode refid="6" relation="include"> </childnode> <childnode refid="27" relation="include"> </childnode> </node> <node id="9"> <label>ubixos/sched.h</label> <link refid="sched_8h"/> <childnode refid="2" relation="include"> </childnode> <childnode refid="10" relation="include"> </childnode> <childnode refid="24" relation="include"> </childnode> <childnode refid="25" relation="include"> </childnode> <childnode refid="12" relation="include"> </childnode> </node> <node id="3"> <label>sys/_types.h</label> <link refid="__types_8h"/> </node> <node id="6"> <label>sys/_timespec.h</label> <link refid="__timespec_8h"/> <childnode refid="3" relation="include"> </childnode> </node> <node id="22"> <label>sys/device.h</label> <link refid="include_2sys_2device_8h"/> <childnode refid="2" relation="include"> </childnode> </node> <node id="11"> <label>ubixfs/dirCache.h</label> <link refid="dirCache_8h"/> <childnode refid="2" relation="include"> </childnode> </node> <node id="7"> <label>sys/_timeval.h</label> <link refid="__timeval_8h"/> <childnode refid="3" relation="include"> </childnode> </node> </incdepgraph> <invincdepgraph> <node id="19"> <label>C:/Dev/git/UbixOS/sys/net/net/udpecho.c</label> <link refid="udpecho_8c"/> </node> <node id="32"> <label>C:/Dev/git/UbixOS/sys/include/ubixos/sem.h</label> <link refid="sem_8h"/> <childnode refid="2" relation="include"> </childnode> <childnode refid="33" relation="include"> </childnode> <childnode refid="12" relation="include"> </childnode> <childnode refid="10" relation="include"> </childnode> <childnode refid="18" relation="include"> </childnode> </node> <node id="14"> <label>C:/Dev/git/UbixOS/sys/net/core/mem.c</label> <link refid="mem_8c"/> </node> <node id="5"> <label>C:/Dev/git/UbixOS/sys/net/api/tcpip.c</label> <link refid="tcpip_8c"/> </node> <node id="30"> <label>C:/Dev/git/UbixOS/sys/include/ubixos/access.h</label> <link refid="access_8h"/> <childnode refid="31" relation="include"> </childnode> </node> <node id="24"> <label>C:/Dev/git/UbixOS/sys/kernel/elf.c</label> <link refid="kernel_2elf_8c"/> </node> <node id="3"> <label>C:/Dev/git/UbixOS/sys/include/net/sys.h</label> <link refid="sys_8h"/> <childnode refid="4" relation="include"> </childnode> <childnode refid="8" relation="include"> </childnode> <childnode refid="13" relation="include"> </childnode> <childnode refid="5" relation="include"> </childnode> <childnode refid="12" relation="include"> </childnode> <childnode refid="14" relation="include"> </childnode> <childnode refid="6" relation="include"> </childnode> <childnode refid="15" relation="include"> </childnode> <childnode refid="16" relation="include"> </childnode> <childnode refid="17" relation="include"> </childnode> <childnode refid="7" relation="include"> </childnode> <childnode refid="10" relation="include"> </childnode> <childnode refid="18" relation="include"> </childnode> <childnode refid="19" relation="include"> </childnode> </node> <node id="8"> <label>C:/Dev/git/UbixOS/sys/include/net/timeouts.h</label> <link refid="timeouts_8h"/> <childnode refid="4" relation="include"> </childnode> <childnode refid="9" relation="include"> </childnode> <childnode refid="12" relation="include"> </childnode> <childnode refid="6" relation="include"> </childnode> <childnode refid="7" relation="include"> </childnode> </node> <node id="18"> <label>C:/Dev/git/UbixOS/sys/net/net/sys_arch.c</label> <link refid="sys__arch_8c"/> </node> <node id="1"> <label>C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h</label> <link refid="ubthread_8h"/> <childnode refid="2" relation="include"> </childnode> <childnode refid="20" relation="include"> </childnode> <childnode refid="30" relation="include"> </childnode> <childnode refid="32" relation="include"> </childnode> <childnode refid="34" relation="include"> </childnode> <childnode refid="18" relation="include"> </childnode> </node> <node id="13"> <label>C:/Dev/git/UbixOS/sys/net/api/err.c</label> <link refid="err_8c"/> </node> <node id="28"> <label>C:/Dev/git/UbixOS/sys/kmods/kmod.c</label> <link refid="kmod_8c"/> </node> <node id="4"> <label>C:/Dev/git/UbixOS/sys/include/net/priv/tcpip_priv.h</label> <link refid="tcpip__priv_8h"/> <childnode refid="5" relation="include"> </childnode> <childnode refid="6" relation="include"> </childnode> <childnode refid="7" relation="include"> </childnode> </node> <node id="21"> <label>C:/Dev/git/UbixOS/sys/arch/armv6/exec.c</label> <link refid="exec_8c"/> </node> <node id="33"> <label>C:/Dev/git/UbixOS/sys/kernel/sem.c</label> <link refid="sem_8c"/> </node> <node id="25"> <label>C:/Dev/git/UbixOS/sys/kernel/ld.c</label> <link refid="ld_8c"/> </node> <node id="2"> <label>C:/Dev/git/UbixOS/sys/include/net/arch/sys_arch.h</label> <link refid="sys__arch_8h"/> <childnode refid="3" relation="include"> </childnode> <childnode refid="18" relation="include"> </childnode> </node> <node id="27"> <label>C:/Dev/git/UbixOS/sys/kernel/syscall_posix.c</label> <link refid="syscall__posix_8c"/> </node> <node id="17"> <label>C:/Dev/git/UbixOS/sys/net/core/sys.c</label> <link refid="sys_8c"/> </node> <node id="31"> <label>C:/Dev/git/UbixOS/sys/kernel/access.c</label> <link refid="access_8c"/> </node> <node id="12"> <label>C:/Dev/git/UbixOS/sys/net/core/init.c</label> <link refid="core_2init_8c"/> </node> <node id="9"> <label>C:/Dev/git/UbixOS/sys/include/net/tcpip.h</label> <link refid="tcpip_8h"/> <childnode refid="4" relation="include"> </childnode> <childnode refid="10" relation="include"> </childnode> <childnode refid="11" relation="include"> </childnode> </node> <node id="11"> <label>C:/Dev/git/UbixOS/sys/net/netif/ethernetif.c</label> <link refid="ethernetif_8c"/> </node> <node id="15"> <label>C:/Dev/git/UbixOS/sys/net/core/netif.c</label> <link refid="netif_8c"/> </node> <node id="6"> <label>C:/Dev/git/UbixOS/sys/net/core/memp.c</label> <link refid="memp_8c"/> </node> <node id="7"> <label>C:/Dev/git/UbixOS/sys/net/core/timeouts.c</label> <link refid="timeouts_8c"/> </node> <node id="26"> <label>C:/Dev/git/UbixOS/sys/kernel/syscall.c</label> <link refid="kernel_2syscall_8c"/> </node> <node id="22"> <label>C:/Dev/git/UbixOS/sys/arch/armv6/syscall.c</label> <link refid="arch_2armv6_2syscall_8c"/> </node> <node id="23"> <label>C:/Dev/git/UbixOS/sys/arch/i386/i386_exec.c</label> <link refid="i386__exec_8c"/> </node> <node id="16"> <label>C:/Dev/git/UbixOS/sys/net/core/pbuf.c</label> <link refid="pbuf_8c"/> </node> <node id="10"> <label>C:/Dev/git/UbixOS/sys/net/net/init.c</label> <link refid="net_2init_8c"/> </node> <node id="34"> <label>C:/Dev/git/UbixOS/sys/kernel/ubthread.c</label> <link refid="ubthread_8c"/> </node> <node id="29"> <label>C:/Dev/git/UbixOS/sys/sys/elf.c</label> <link refid="sys_2elf_8c"/> </node> <node id="20"> <label>C:/Dev/git/UbixOS/sys/include/sys/elf.h</label> <link refid="sys_2elf_8h"/> <childnode refid="21" relation="include"> </childnode> <childnode refid="22" relation="include"> </childnode> <childnode refid="23" relation="include"> </childnode> <childnode refid="24" relation="include"> </childnode> <childnode refid="25" relation="include"> </childnode> <childnode refid="26" relation="include"> </childnode> <childnode refid="27" relation="include"> </childnode> <childnode refid="28" relation="include"> </childnode> <childnode refid="29" relation="include"> </childnode> </node> </invincdepgraph> <innerclass refid="structubthread" prot="public">ubthread</innerclass> <innerclass refid="structubthread__cond" prot="public">ubthread_cond</innerclass> <innerclass refid="structubthread__cond__list" prot="public">ubthread_cond_list</innerclass> <innerclass refid="structubthread__list" prot="public">ubthread_list</innerclass> <innerclass refid="structubthread__mutex" prot="public">ubthread_mutex</innerclass> <innerclass refid="structubthread__mutex__list" prot="public">ubthread_mutex_list</innerclass> <sectiondef kind="define"> <memberdef kind="define" id="ubthread_8h_1a00de8f7e0b615f88335573ba3909583d" prot="public" static="no"> <name>LOCKED</name> <initializer>1</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" line="36" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" bodystart="36" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ubthread_8h_1af0591d953a49374b660c9de8964825fe" prot="public" static="no"> <name>UNLOCKED</name> <initializer>0</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" line="37" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" bodystart="37" bodyend="-1"/> </memberdef> </sectiondef> <sectiondef kind="typedef"> <memberdef kind="typedef" id="ubthread_8h_1a96521d8547d8b54e20e6f18d83c06901" prot="public" static="no"> <type>struct <ref refid="structubthread__cond" kindref="compound">ubthread_cond</ref> *</type> <definition>typedef struct ubthread_cond* ubthread_cond_t</definition> <argsstring></argsstring> <name>ubthread_cond_t</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" line="40" column="28" bodyfile="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" bodystart="40" bodyend="-1"/> </memberdef> <memberdef kind="typedef" id="ubthread_8h_1a2b33c44e0ad37a62d92aaeeb011860e0" prot="public" static="no"> <type>struct <ref refid="structubthread__mutex" kindref="compound">ubthread_mutex</ref> *</type> <definition>typedef struct ubthread_mutex* ubthread_mutex_t</definition> <argsstring></argsstring> <name>ubthread_mutex_t</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" line="41" column="29" bodyfile="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" bodystart="41" bodyend="-1"/> </memberdef> <memberdef kind="typedef" id="ubthread_8h_1ad95f6922b782fa82362d6ec1edb5b63e" prot="public" static="no"> <type>struct <ref refid="structubthread" kindref="compound">ubthread</ref> *</type> <definition>typedef struct ubthread* ubthread_t</definition> <argsstring></argsstring> <name>ubthread_t</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" line="39" column="23" bodyfile="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" bodystart="39" bodyend="-1"/> </memberdef> </sectiondef> <sectiondef kind="func"> <memberdef kind="function" id="ubthread_8h_1aeb2f756a095ecfddad31354f819623ee" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int ubthread_cond_broadcast</definition> <argsstring>(ubthread_cond_t *cond)</argsstring> <name>ubthread_cond_broadcast</name> <param> <type><ref refid="ubthread_8h_1a96521d8547d8b54e20e6f18d83c06901" kindref="member">ubthread_cond_t</ref> *</type> <declname>cond</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" line="84" column="5" bodyfile="C:/Dev/git/UbixOS/sys/kernel/ubthread.c" bodystart="164" bodyend="169" declfile="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" declline="84" declcolumn="5"/> <referencedby refid="group__sys__sem_1gaff1dd2af219b75ae812e0b1660bd7455" compoundref="sys__arch_8c" startline="89" endline="103">sys_sem_signal</referencedby> </memberdef> <memberdef kind="function" id="ubthread_8h_1ae914fae69538736dc5e494c15ce93a17" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int ubthread_cond_destroy</definition> <argsstring>(ubthread_cond_t *cond)</argsstring> <name>ubthread_cond_destroy</name> <param> <type><ref refid="ubthread_8h_1a96521d8547d8b54e20e6f18d83c06901" kindref="member">ubthread_cond_t</ref> *</type> <declname>cond</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" line="76" column="5" bodyfile="C:/Dev/git/UbixOS/sys/kernel/ubthread.c" bodystart="71" bodyend="75" declfile="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" declline="76" declcolumn="5"/> <references refid="kmalloc_8h_1aaa9ed6886459604cf73ccdbf6410e487" compoundref="kmalloc_8c" startline="342" endline="382">kfree</references> <referencedby refid="sem_8c_1aa386df202c6e9b90a1445a61ce694210" compoundref="sem_8c" startline="87" endline="100">sem_destroy</referencedby> </memberdef> <memberdef kind="function" id="ubthread_8h_1acbb7170a68758468ab5b02512a320112" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int ubthread_cond_init</definition> <argsstring>(ubthread_cond_t *cond, const uInt32 attr)</argsstring> <name>ubthread_cond_init</name> <param> <type><ref refid="ubthread_8h_1a96521d8547d8b54e20e6f18d83c06901" kindref="member">ubthread_cond_t</ref> *</type> <declname>cond</declname> </param> <param> <type><ref refid="cdefs_8h_1a2c212835823e3c54a8ab6d95c652660e" kindref="member">const</ref> <ref refid="objgfx30_8h_1ada085051a6d9a8e00a2cb256d1af14ba" kindref="member">uInt32</ref></type> <declname>attr</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" line="74" column="5" declfile="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" declline="74" declcolumn="5"/> <referencedby refid="sem_8c_1a19bd6e9be9540104f4ab465624e9a579" compoundref="sem_8c" startline="56" endline="73">sem_init</referencedby> <referencedby refid="group__sys__sem_1gadb68acad14b34550b9891bc11bbf4e63" compoundref="sys__arch_8c" startline="52" endline="72">sys_sem_new</referencedby> </memberdef> <memberdef kind="function" id="ubthread_8h_1a64fb8f5f2da2564a6cae8c9f2c3bde10" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int ubthread_cond_signal</definition> <argsstring>(ubthread_cond_t *cond)</argsstring> <name>ubthread_cond_signal</name> <param> <type><ref refid="ubthread_8h_1a96521d8547d8b54e20e6f18d83c06901" kindref="member">ubthread_cond_t</ref> *</type> <declname>cond</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" line="83" column="5" bodyfile="C:/Dev/git/UbixOS/sys/kernel/ubthread.c" bodystart="157" bodyend="162" declfile="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" declline="83" declcolumn="5"/> </memberdef> <memberdef kind="function" id="ubthread_8h_1a996be9a927447a62f7168a082a046c54" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int ubthread_cond_timedwait</definition> <argsstring>(ubthread_cond_t *cond, ubthread_mutex_t *mutex, const struct timespec *abstime)</argsstring> <name>ubthread_cond_timedwait</name> <param> <type><ref refid="ubthread_8h_1a96521d8547d8b54e20e6f18d83c06901" kindref="member">ubthread_cond_t</ref> *</type> <declname>cond</declname> </param> <param> <type><ref refid="ubthread_8h_1a2b33c44e0ad37a62d92aaeeb011860e0" kindref="member">ubthread_mutex_t</ref> *</type> <declname>mutex</declname> </param> <param> <type><ref refid="cdefs_8h_1a2c212835823e3c54a8ab6d95c652660e" kindref="member">const</ref> struct <ref refid="structtimespec" kindref="compound">timespec</ref> *</type> <declname>abstime</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" line="81" column="5" bodyfile="C:/Dev/git/UbixOS/sys/kernel/ubthread.c" bodystart="129" bodyend="146" declfile="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" declline="81" declcolumn="5"/> <references refid="include_2sys_2types_8h_1af6a258d8f3ee5206d682d799316314b1aa1e095cc966dbecf6a0d8aad75348d1a" compoundref="include_2sys_2types_8h" startline="82">FALSE</references> <references refid="structubthread__cond_1aae369fe44ca2aee0e9e0df01a5dda323" compoundref="ubthread_8h" startline="49">ubthread_cond::lock</references> <references refid="ubthread_8c_1a18b6be9ca0cec4b0643171232d6f10de" compoundref="ubthread_8c" startline="43">mutex</references> <references refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" compoundref="armv6_2sched_8c" startline="244" endline="246">sched_yield</references> <references refid="vitals_8h_1a67aae71be472453526fc1a0bfbf80280" compoundref="vitals_8c" startline="35">systemVitals</references> <references refid="structvitalsStruct_1a78832d978f9753eb94bf615dc215f511" compoundref="vitals_8h" startline="38">vitalsStruct::sysUptime</references> <references refid="ubthread_8c_1aa13bf141cd3e9bf0921fbf61ffc637d8" compoundref="ubthread_8c" startline="88" endline="107">ubthread_mutex_lock</references> <references refid="ubthread_8c_1afea3530bab360f59c09a49f490d079dd" compoundref="ubthread_8c" startline="109" endline="127">ubthread_mutex_unlock</references> </memberdef> <memberdef kind="function" id="ubthread_8h_1a30eb7c156c2422801ddb86326dbc3d81" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int ubthread_cond_wait</definition> <argsstring>(ubthread_cond_t *cond, ubthread_mutex_t *mutex)</argsstring> <name>ubthread_cond_wait</name> <param> <type><ref refid="ubthread_8h_1a96521d8547d8b54e20e6f18d83c06901" kindref="member">ubthread_cond_t</ref> *</type> <declname>cond</declname> </param> <param> <type><ref refid="ubthread_8h_1a2b33c44e0ad37a62d92aaeeb011860e0" kindref="member">ubthread_mutex_t</ref> *</type> <declname>mutex</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" line="82" column="5" bodyfile="C:/Dev/git/UbixOS/sys/kernel/ubthread.c" bodystart="148" bodyend="155" declfile="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" declline="82" declcolumn="5"/> <references refid="structubthread__cond_1aae369fe44ca2aee0e9e0df01a5dda323" compoundref="ubthread_8h" startline="49">ubthread_cond::lock</references> <references refid="ubthread_8c_1a18b6be9ca0cec4b0643171232d6f10de" compoundref="ubthread_8c" startline="43">mutex</references> <references refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" compoundref="armv6_2sched_8c" startline="244" endline="246">sched_yield</references> <references refid="include_2sys_2types_8h_1af6a258d8f3ee5206d682d799316314b1aa82764c3079aea4e60c80e45befbb839" compoundref="include_2sys_2types_8h" startline="82">TRUE</references> <references refid="ubthread_8c_1aa13bf141cd3e9bf0921fbf61ffc637d8" compoundref="ubthread_8c" startline="88" endline="107">ubthread_mutex_lock</references> <references refid="ubthread_8c_1afea3530bab360f59c09a49f490d079dd" compoundref="ubthread_8c" startline="109" endline="127">ubthread_mutex_unlock</references> </memberdef> <memberdef kind="function" id="ubthread_8h_1a268790b10ae29b2a8ca3ccea107bfc55" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int ubthread_create</definition> <argsstring>(struct taskStruct **thread, const uInt32 *attr, void(*tproc)(void), void *arg)</argsstring> <name>ubthread_create</name> <param> <type>struct <ref refid="structtaskStruct" kindref="compound">taskStruct</ref> **</type> <declname>thread</declname> </param> <param> <type><ref refid="cdefs_8h_1a2c212835823e3c54a8ab6d95c652660e" kindref="member">const</ref> <ref refid="objgfx30_8h_1ada085051a6d9a8e00a2cb256d1af14ba" kindref="member">uInt32</ref> *</type> <declname>attr</declname> </param> <param> <type>void(*)(void)</type> <declname>tproc</declname> </param> <param> <type>void *</type> <declname>arg</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" line="78" column="5" bodyfile="C:/Dev/git/UbixOS/sys/kernel/ubthread.c" bodystart="83" bodyend="86" declfile="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" declline="78" declcolumn="5"/> <references refid="exec_8c_1a4b86d28d8fd56197042aef174de2fd58" compoundref="exec_8c" startline="66" endline="136">execThread</references> </memberdef> <memberdef kind="function" id="ubthread_8h_1a278f5d5b1e11b6668b75da6a285442e4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int ubthread_mutex_destroy</definition> <argsstring>(ubthread_mutex_t *mutex)</argsstring> <name>ubthread_mutex_destroy</name> <param> <type><ref refid="ubthread_8h_1a2b33c44e0ad37a62d92aaeeb011860e0" kindref="member">ubthread_mutex_t</ref> *</type> <declname>mutex</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" line="77" column="5" bodyfile="C:/Dev/git/UbixOS/sys/kernel/ubthread.c" bodystart="77" bodyend="81" declfile="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" declline="77" declcolumn="5"/> <references refid="kmalloc_8h_1aaa9ed6886459604cf73ccdbf6410e487" compoundref="kmalloc_8c" startline="342" endline="382">kfree</references> <references refid="ubthread_8c_1a18b6be9ca0cec4b0643171232d6f10de" compoundref="ubthread_8c" startline="43">mutex</references> <referencedby refid="sem_8c_1aa386df202c6e9b90a1445a61ce694210" compoundref="sem_8c" startline="87" endline="100">sem_destroy</referencedby> <referencedby refid="group__sys__mutex_1ga16336ce68b741e98204102ca4bc84dd9" compoundref="sys__arch_8c" startline="149" endline="151">sys_mutex_free</referencedby> </memberdef> <memberdef kind="function" id="ubthread_8h_1ab6bfc2169b55532821582f24b68dc855" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int ubthread_mutex_init</definition> <argsstring>(ubthread_mutex_t *mutex, const uInt32 attr)</argsstring> <name>ubthread_mutex_init</name> <param> <type><ref refid="ubthread_8h_1a2b33c44e0ad37a62d92aaeeb011860e0" kindref="member">ubthread_mutex_t</ref> *</type> <declname>mutex</declname> </param> <param> <type><ref refid="cdefs_8h_1a2c212835823e3c54a8ab6d95c652660e" kindref="member">const</ref> <ref refid="objgfx30_8h_1ada085051a6d9a8e00a2cb256d1af14ba" kindref="member">uInt32</ref></type> <declname>attr</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" line="75" column="5" declfile="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" declline="75" declcolumn="5"/> <referencedby refid="sem_8c_1a19bd6e9be9540104f4ab465624e9a579" compoundref="sem_8c" startline="56" endline="73">sem_init</referencedby> <referencedby refid="group__sys__mutex_1ga38e7dae1fd88b338eb1cd97f110f3897" compoundref="sys__arch_8c" startline="144" endline="147">sys_mutex_new</referencedby> <referencedby refid="group__sys__sem_1gadb68acad14b34550b9891bc11bbf4e63" compoundref="sys__arch_8c" startline="52" endline="72">sys_sem_new</referencedby> </memberdef> <memberdef kind="function" id="ubthread_8h_1aa13bf141cd3e9bf0921fbf61ffc637d8" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int ubthread_mutex_lock</definition> <argsstring>(ubthread_mutex_t *mutex)</argsstring> <name>ubthread_mutex_lock</name> <param> <type><ref refid="ubthread_8h_1a2b33c44e0ad37a62d92aaeeb011860e0" kindref="member">ubthread_mutex_t</ref> *</type> <declname>mutex</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" line="79" column="5" bodyfile="C:/Dev/git/UbixOS/sys/kernel/ubthread.c" bodystart="88" bodyend="107" declfile="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" declline="79" declcolumn="5"/> <references refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" compoundref="armv6_2sched_8c" startline="50">_current</references> <references refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" compoundref="sched_8h" startline="63">taskStruct::id</references> <references refid="armv6_2kpanic_8c_1adb9a182aa071791a306163d50d653deb" compoundref="armv6_2kpanic_8c" startline="41" endline="61">kpanic</references> <references refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" compoundref="kprintf_8c" startline="259" endline="276">kprintf</references> <references refid="structubthread__mutex_1aac3657ca9969799cdcbc0e9e66926be2" compoundref="ubthread_8h" startline="54">ubthread_mutex::lock</references> <references refid="ubthread_8c_1a18b6be9ca0cec4b0643171232d6f10de" compoundref="ubthread_8c" startline="43">mutex</references> <references refid="structubthread__mutex_1a9c8643e4d9bec2a38ea1d45e82609f2a" compoundref="ubthread_8h" startline="55">ubthread_mutex::pid</references> <references refid="include_2sys_2types_8h_1af6a258d8f3ee5206d682d799316314b1aa82764c3079aea4e60c80e45befbb839" compoundref="include_2sys_2types_8h" startline="82">TRUE</references> <referencedby refid="group__sys__sem_1ga28aa725e8a36dd0cfde89875af4f3ec9" compoundref="sys__arch_8c" startline="105" endline="130">sys_arch_sem_wait</referencedby> <referencedby refid="group__sys__mutex_1ga4d4eb9afe5965fa2661dd54ff55d616a" compoundref="sys__arch_8c" startline="153" endline="155">sys_mutex_lock</referencedby> <referencedby refid="group__sys__sem_1gaff1dd2af219b75ae812e0b1660bd7455" compoundref="sys__arch_8c" startline="89" endline="103">sys_sem_signal</referencedby> <referencedby refid="ubthread_8c_1a996be9a927447a62f7168a082a046c54" compoundref="ubthread_8c" startline="129" endline="146">ubthread_cond_timedwait</referencedby> <referencedby refid="ubthread_8c_1a30eb7c156c2422801ddb86326dbc3d81" compoundref="ubthread_8c" startline="148" endline="155">ubthread_cond_wait</referencedby> </memberdef> <memberdef kind="function" id="ubthread_8h_1afea3530bab360f59c09a49f490d079dd" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int ubthread_mutex_unlock</definition> <argsstring>(ubthread_mutex_t *mutex)</argsstring> <name>ubthread_mutex_unlock</name> <param> <type><ref refid="ubthread_8h_1a2b33c44e0ad37a62d92aaeeb011860e0" kindref="member">ubthread_mutex_t</ref> *</type> <declname>mutex</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" line="80" column="5" bodyfile="C:/Dev/git/UbixOS/sys/kernel/ubthread.c" bodystart="109" bodyend="127" declfile="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" declline="80" declcolumn="5"/> <references refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" compoundref="armv6_2sched_8c" startline="50">_current</references> <references refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" compoundref="sched_8h" startline="63">taskStruct::id</references> <references refid="armv6_2kpanic_8c_1adb9a182aa071791a306163d50d653deb" compoundref="armv6_2kpanic_8c" startline="41" endline="61">kpanic</references> <references refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" compoundref="kprintf_8c" startline="259" endline="276">kprintf</references> <references refid="structubthread__mutex_1aac3657ca9969799cdcbc0e9e66926be2" compoundref="ubthread_8h" startline="54">ubthread_mutex::lock</references> <references refid="ubthread_8c_1a18b6be9ca0cec4b0643171232d6f10de" compoundref="ubthread_8c" startline="43">mutex</references> <references refid="structubthread__mutex_1a9c8643e4d9bec2a38ea1d45e82609f2a" compoundref="ubthread_8h" startline="55">ubthread_mutex::pid</references> <references refid="include_2sys_2types_8h_1af6a258d8f3ee5206d682d799316314b1aa82764c3079aea4e60c80e45befbb839" compoundref="include_2sys_2types_8h" startline="82">TRUE</references> <referencedby refid="group__sys__mutex_1ga5568f68898fe9d5735f9ce2f665624fb" compoundref="sys__arch_8c" startline="157" endline="159">sys_mutex_unlock</referencedby> <referencedby refid="group__sys__sem_1gaff1dd2af219b75ae812e0b1660bd7455" compoundref="sys__arch_8c" startline="89" endline="103">sys_sem_signal</referencedby> <referencedby refid="ubthread_8c_1a996be9a927447a62f7168a082a046c54" compoundref="ubthread_8c" startline="129" endline="146">ubthread_cond_timedwait</referencedby> <referencedby refid="ubthread_8c_1a30eb7c156c2422801ddb86326dbc3d81" compoundref="ubthread_8c" startline="148" endline="155">ubthread_cond_wait</referencedby> </memberdef> <memberdef kind="function" id="ubthread_8h_1a4bbec629fa7ca82f6243cb02b014d1d5" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>struct <ref refid="structtaskStruct" kindref="compound">taskStruct</ref> *</type> <definition>struct taskStruct* ubthread_self</definition> <argsstring>()</argsstring> <name>ubthread_self</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" line="73" column="17" bodyfile="C:/Dev/git/UbixOS/sys/kernel/ubthread.c" bodystart="45" bodyend="47" declfile="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h" declline="73" declcolumn="17"/> <references refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" compoundref="armv6_2sched_8c" startline="50">_current</references> </memberdef> </sectiondef> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <programlisting> <codeline lineno="1"><highlight class="comment">/*-</highlight></codeline> <codeline lineno="2"><highlight class="comment"><sp/>*<sp/>Copyright<sp/>(c)<sp/>2002-2018<sp/>The<sp/>UbixOS<sp/>Project.</highlight></codeline> <codeline lineno="3"><highlight class="comment"><sp/>*<sp/>All<sp/>rights<sp/>reserved.</highlight></codeline> <codeline lineno="4"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="5"><highlight class="comment"><sp/>*<sp/>This<sp/>was<sp/>developed<sp/>by<sp/>Christopher<sp/>W.<sp/>Olsen<sp/>for<sp/>the<sp/>UbixOS<sp/>Project.</highlight></codeline> <codeline lineno="6"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="7"><highlight class="comment"><sp/>*<sp/>Redistribution<sp/>and<sp/>use<sp/>in<sp/>source<sp/>and<sp/>binary<sp/>forms,<sp/>with<sp/>or<sp/>without<sp/>modification,<sp/>are<sp/>permitted</highlight></codeline> <codeline lineno="8"><highlight class="comment"><sp/>*<sp/>provided<sp/>that<sp/>the<sp/>following<sp/>conditions<sp/>are<sp/>met:</highlight></codeline> <codeline lineno="9"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="10"><highlight class="comment"><sp/>*<sp/>1)<sp/>Redistributions<sp/>of<sp/>source<sp/>code<sp/>must<sp/>retain<sp/>the<sp/>above<sp/>copyright<sp/>notice,<sp/>this<sp/>list<sp/>of</highlight></codeline> <codeline lineno="11"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>conditions,<sp/>the<sp/>following<sp/>disclaimer<sp/>and<sp/>the<sp/>list<sp/>of<sp/>authors.</highlight></codeline> <codeline lineno="12"><highlight class="comment"><sp/>*<sp/>2)<sp/>Redistributions<sp/>in<sp/>binary<sp/>form<sp/>must<sp/>reproduce<sp/>the<sp/>above<sp/>copyright<sp/>notice,<sp/>this<sp/>list<sp/>of</highlight></codeline> <codeline lineno="13"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>conditions,<sp/>the<sp/>following<sp/>disclaimer<sp/>and<sp/>the<sp/>list<sp/>of<sp/>authors<sp/>in<sp/>the<sp/>documentation<sp/>and/or</highlight></codeline> <codeline lineno="14"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>other<sp/>materials<sp/>provided<sp/>with<sp/>the<sp/>distribution.</highlight></codeline> <codeline lineno="15"><highlight class="comment"><sp/>*<sp/>3)<sp/>Neither<sp/>the<sp/>name<sp/>of<sp/>the<sp/>UbixOS<sp/>Project<sp/>nor<sp/>the<sp/>names<sp/>of<sp/>its<sp/>contributors<sp/>may<sp/>be<sp/>used<sp/>to</highlight></codeline> <codeline lineno="16"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>endorse<sp/>or<sp/>promote<sp/>products<sp/>derived<sp/>from<sp/>this<sp/>software<sp/>without<sp/>specific<sp/>prior<sp/>written</highlight></codeline> <codeline lineno="17"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>permission.</highlight></codeline> <codeline lineno="18"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="19"><highlight class="comment"><sp/>*<sp/>THIS<sp/>SOFTWARE<sp/>IS<sp/>PROVIDED<sp/>BY<sp/>THE<sp/>AUTHOR<sp/>AND<sp/>CONTRIBUTORS<sp/>"AS<sp/>IS"<sp/>AND<sp/>ANY<sp/>EXPRESS<sp/>OR<sp/>IMPLIED</highlight></codeline> <codeline lineno="20"><highlight class="comment"><sp/>*<sp/>WARRANTIES,<sp/>INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>THE<sp/>IMPLIED<sp/>WARRANTIES<sp/>OF<sp/>MERCHANTABILITY<sp/>AND<sp/>FITNESS</highlight></codeline> <codeline lineno="21"><highlight class="comment"><sp/>*<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE<sp/>ARE<sp/>DISCLAIMED.<sp/>IN<sp/>NO<sp/>EVENT<sp/>SHALL<sp/>THE<sp/>COPYRIGHT<sp/>OWNER<sp/>OR<sp/>CONTRIBUTORS</highlight></codeline> <codeline lineno="22"><highlight class="comment"><sp/>*<sp/>BE<sp/>LIABLE<sp/>FOR<sp/>ANY<sp/>DIRECT,<sp/>INDIRECT,<sp/>INCIDENTAL,<sp/>SPECIAL,<sp/>EXEMPLARY,<sp/>OR<sp/>CONSEQUENTIAL<sp/>DAMAGES</highlight></codeline> <codeline lineno="23"><highlight class="comment"><sp/>*<sp/>(INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>PROCUREMENT<sp/>OF<sp/>SUBSTITUTE<sp/>GOODS<sp/>OR<sp/>SERVICES;<sp/>LOSS<sp/>OF<sp/>USE,<sp/>DATA,</highlight></codeline> <codeline lineno="24"><highlight class="comment"><sp/>*<sp/>OR<sp/>PROFITS;<sp/>OR<sp/>BUSINESS<sp/>INTERRUPTION)<sp/>HOWEVER<sp/>CAUSED<sp/>AND<sp/>ON<sp/>ANY<sp/>THEORY<sp/>OF<sp/>LIABILITY,<sp/>WHETHER<sp/>IN</highlight></codeline> <codeline lineno="25"><highlight class="comment"><sp/>*<sp/>CONTRACT,<sp/>STRICT<sp/>LIABILITY,<sp/>OR<sp/>TORT<sp/>(INCLUDING<sp/>NEGLIGENCE<sp/>OR<sp/>OTHERWISE)<sp/>ARISING<sp/>IN<sp/>ANY<sp/>WAY<sp/>OUT</highlight></codeline> <codeline lineno="26"><highlight class="comment"><sp/>*<sp/>OF<sp/>THE<sp/>USE<sp/>OF<sp/>THIS<sp/>SOFTWARE,<sp/>EVEN<sp/>IF<sp/>ADVISED<sp/>OF<sp/>THE<sp/>POSSIBILITY<sp/>OF<sp/>SUCH<sp/>DAMAGE.</highlight></codeline> <codeline lineno="27"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="28"><highlight class="normal"></highlight></codeline> <codeline lineno="29"><highlight class="normal"></highlight><highlight class="preprocessor">#ifndef<sp/>_UBTHREAD_H</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="30"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>_UBTHREAD_H</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="31"><highlight class="normal"></highlight></codeline> <codeline lineno="32"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="include_2sys_2types_8h" kindref="compound">sys/types.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="33"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="sched_8h" kindref="compound">ubixos/sched.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="34"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="time_8h" kindref="compound">ubixos/time.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="35"><highlight class="normal"></highlight></codeline> <codeline lineno="36" refid="ubthread_8h_1a00de8f7e0b615f88335573ba3909583d" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>LOCKED<sp/><sp/><sp/><sp/><sp/>1</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="37" refid="ubthread_8h_1af0591d953a49374b660c9de8964825fe" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>UNLOCKED<sp/><sp/><sp/>0</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="38"><highlight class="normal"></highlight></codeline> <codeline lineno="39" refid="ubthread_8h_1ad95f6922b782fa82362d6ec1edb5b63e" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structubthread" kindref="compound">ubthread</ref><sp/>*<ref refid="ubthread_8h_1ad95f6922b782fa82362d6ec1edb5b63e" kindref="member">ubthread_t</ref>;</highlight></codeline> <codeline lineno="40" refid="ubthread_8h_1a96521d8547d8b54e20e6f18d83c06901" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structubthread__cond" kindref="compound">ubthread_cond</ref><sp/>*<ref refid="ubthread_8h_1a96521d8547d8b54e20e6f18d83c06901" kindref="member">ubthread_cond_t</ref>;</highlight></codeline> <codeline lineno="41" refid="ubthread_8h_1a2b33c44e0ad37a62d92aaeeb011860e0" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structubthread__mutex" kindref="compound">ubthread_mutex</ref><sp/>*<ref refid="ubthread_8h_1a2b33c44e0ad37a62d92aaeeb011860e0" kindref="member">ubthread_mutex_t</ref>;</highlight></codeline> <codeline lineno="42"><highlight class="normal"></highlight></codeline> <codeline lineno="43" refid="structubthread" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structubthread" kindref="compound">ubthread</ref><sp/>{</highlight></codeline> <codeline lineno="44" refid="structubthread_1a1f8603e5e13eda2a78d58bc0c981733e" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structtaskStruct" kindref="compound">taskStruct</ref><sp/>*<ref refid="structubthread_1a1f8603e5e13eda2a78d58bc0c981733e" kindref="member">task</ref>;</highlight></codeline> <codeline lineno="45"><highlight class="normal">};</highlight></codeline> <codeline lineno="46"><highlight class="normal"></highlight></codeline> <codeline lineno="47" refid="structubthread__cond" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structubthread__cond" kindref="compound">ubthread_cond</ref><sp/>{</highlight></codeline> <codeline lineno="48" refid="structubthread__cond_1a9557e920c79c936de8ce6b9f9a65a245" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="structubthread__cond_1a9557e920c79c936de8ce6b9f9a65a245" kindref="member">id</ref>;</highlight></codeline> <codeline lineno="49" refid="structubthread__cond_1aae369fe44ca2aee0e9e0df01a5dda323" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="structubthread__cond_1aae369fe44ca2aee0e9e0df01a5dda323" kindref="member">lock</ref>;</highlight></codeline> <codeline lineno="50"><highlight class="normal">};</highlight></codeline> <codeline lineno="51"><highlight class="normal"></highlight></codeline> <codeline lineno="52" refid="structubthread__mutex" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structubthread__mutex" kindref="compound">ubthread_mutex</ref><sp/>{</highlight></codeline> <codeline lineno="53" refid="structubthread__mutex_1a57e2eddcab2e03f27fe5b75c7840b619" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="structubthread__mutex_1a57e2eddcab2e03f27fe5b75c7840b619" kindref="member">id</ref>;</highlight></codeline> <codeline lineno="54" refid="structubthread__mutex_1aac3657ca9969799cdcbc0e9e66926be2" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="structubthread__mutex_1aac3657ca9969799cdcbc0e9e66926be2" kindref="member">lock</ref>;</highlight></codeline> <codeline lineno="55" refid="structubthread__mutex_1a9c8643e4d9bec2a38ea1d45e82609f2a" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="include_2sys_2types_8h_1ae438ba74394b14d7b24b6df3b3b8c252" kindref="member">pidType</ref><sp/><ref refid="structubthread__mutex_1a9c8643e4d9bec2a38ea1d45e82609f2a" kindref="member">pid</ref>;</highlight></codeline> <codeline lineno="56"><highlight class="normal">};</highlight></codeline> <codeline lineno="57"><highlight class="normal"></highlight></codeline> <codeline lineno="58" refid="structubthread__list" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structubthread__list" kindref="compound">ubthread_list</ref><sp/>{</highlight></codeline> <codeline lineno="59" refid="structubthread__list_1a6da62f642834ec7e9c202c1a560bf62e" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structubthread__list" kindref="compound">ubthread_list</ref><sp/>*<ref refid="structubthread__list_1a6da62f642834ec7e9c202c1a560bf62e" kindref="member">next</ref>;</highlight></codeline> <codeline lineno="60" refid="structubthread__list_1a3572ed1fb72d82b96ae66363967a89df" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="structubthread" kindref="compound">ubthread_t</ref><sp/><ref refid="structubthread__list_1a3572ed1fb72d82b96ae66363967a89df" kindref="member">thread</ref>;</highlight></codeline> <codeline lineno="61"><highlight class="normal">};</highlight></codeline> <codeline lineno="62"><highlight class="normal"></highlight></codeline> <codeline lineno="63" refid="structubthread__cond__list" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structubthread__cond__list" kindref="compound">ubthread_cond_list</ref><sp/>{</highlight></codeline> <codeline lineno="64" refid="structubthread__cond__list_1ad5cf73bd503d8318feca31d8d3e86c89" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structubthread__cond__list" kindref="compound">ubthread_cond_list</ref><sp/>*<ref refid="structubthread__cond__list_1ad5cf73bd503d8318feca31d8d3e86c89" kindref="member">next</ref>;</highlight></codeline> <codeline lineno="65" refid="structubthread__cond__list_1ac6a0b68879515ad2121d705aa7571c7e" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="structubthread__cond" kindref="compound">ubthread_cond_t</ref><sp/>*<ref refid="structubthread__cond__list_1ac6a0b68879515ad2121d705aa7571c7e" kindref="member">cond</ref>;</highlight></codeline> <codeline lineno="66"><highlight class="normal">};</highlight></codeline> <codeline lineno="67"><highlight class="normal"></highlight></codeline> <codeline lineno="68" refid="structubthread__mutex__list" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structubthread__mutex__list" kindref="compound">ubthread_mutex_list</ref><sp/>{</highlight></codeline> <codeline lineno="69" refid="structubthread__mutex__list_1a6095ff6c862e822ada5e3706bf538c46" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structubthread__mutex__list" kindref="compound">ubthread_mutex_list</ref><sp/>*<ref refid="structubthread__mutex__list_1a6095ff6c862e822ada5e3706bf538c46" kindref="member">next</ref>;</highlight></codeline> <codeline lineno="70" refid="structubthread__mutex__list_1a020fa0de30d24e5984a2715a8f3a3c9c" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="structubthread__mutex" kindref="compound">ubthread_mutex_t</ref><sp/>*<ref refid="structubthread__mutex__list_1a020fa0de30d24e5984a2715a8f3a3c9c" kindref="member">mutex</ref>;</highlight></codeline> <codeline lineno="71"><highlight class="normal">};</highlight></codeline> <codeline lineno="72"><highlight class="normal"></highlight></codeline> <codeline lineno="73"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structtaskStruct" kindref="compound">taskStruct</ref><sp/>*<ref refid="ubthread_8h_1a4bbec629fa7ca82f6243cb02b014d1d5" kindref="member">ubthread_self</ref>();</highlight></codeline> <codeline lineno="74"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ubthread_8h_1acbb7170a68758468ab5b02512a320112" kindref="member">ubthread_cond_init</ref>(<ref refid="structubthread__cond" kindref="compound">ubthread_cond_t</ref><sp/>*cond,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="objgfx30_8h_1ada085051a6d9a8e00a2cb256d1af14ba" kindref="member">uInt32</ref><sp/>attr);</highlight></codeline> <codeline lineno="75"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ubthread_8h_1ab6bfc2169b55532821582f24b68dc855" kindref="member">ubthread_mutex_init</ref>(<ref refid="structubthread__mutex" kindref="compound">ubthread_mutex_t</ref><sp/>*<ref refid="ubthread_8c_1a18b6be9ca0cec4b0643171232d6f10de" kindref="member">mutex</ref>,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="objgfx30_8h_1ada085051a6d9a8e00a2cb256d1af14ba" kindref="member">uInt32</ref><sp/>attr);</highlight></codeline> <codeline lineno="76"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ubthread_8h_1ae914fae69538736dc5e494c15ce93a17" kindref="member">ubthread_cond_destroy</ref>(<ref refid="structubthread__cond" kindref="compound">ubthread_cond_t</ref><sp/>*cond);</highlight></codeline> <codeline lineno="77"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ubthread_8h_1a278f5d5b1e11b6668b75da6a285442e4" kindref="member">ubthread_mutex_destroy</ref>(<ref refid="structubthread__mutex" kindref="compound">ubthread_mutex_t</ref><sp/>*<ref refid="ubthread_8c_1a18b6be9ca0cec4b0643171232d6f10de" kindref="member">mutex</ref>);</highlight></codeline> <codeline lineno="78"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ubthread_8h_1a268790b10ae29b2a8ca3ccea107bfc55" kindref="member">ubthread_create</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtaskStruct" kindref="compound">taskStruct</ref><sp/>**<ref refid="structthread" kindref="compound">thread</ref>,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="objgfx30_8h_1ada085051a6d9a8e00a2cb256d1af14ba" kindref="member">uInt32</ref><sp/>*attr,<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>(*tproc)(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">),<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*arg);</highlight></codeline> <codeline lineno="79"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ubthread_8h_1aa13bf141cd3e9bf0921fbf61ffc637d8" kindref="member">ubthread_mutex_lock</ref>(<ref refid="structubthread__mutex" kindref="compound">ubthread_mutex_t</ref><sp/>*<ref refid="ubthread_8c_1a18b6be9ca0cec4b0643171232d6f10de" kindref="member">mutex</ref>);</highlight></codeline> <codeline lineno="80"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ubthread_8h_1afea3530bab360f59c09a49f490d079dd" kindref="member">ubthread_mutex_unlock</ref>(<ref refid="structubthread__mutex" kindref="compound">ubthread_mutex_t</ref><sp/>*<ref refid="ubthread_8c_1a18b6be9ca0cec4b0643171232d6f10de" kindref="member">mutex</ref>);</highlight></codeline> <codeline lineno="81"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ubthread_8h_1a996be9a927447a62f7168a082a046c54" kindref="member">ubthread_cond_timedwait</ref>(<ref refid="structubthread__cond" kindref="compound">ubthread_cond_t</ref><sp/>*cond,<sp/><ref refid="structubthread__mutex" kindref="compound">ubthread_mutex_t</ref><sp/>*<ref refid="ubthread_8c_1a18b6be9ca0cec4b0643171232d6f10de" kindref="member">mutex</ref>,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtimespec" kindref="compound">timespec</ref><sp/>*abstime);</highlight></codeline> <codeline lineno="82"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ubthread_8h_1a30eb7c156c2422801ddb86326dbc3d81" kindref="member">ubthread_cond_wait</ref>(<ref refid="structubthread__cond" kindref="compound">ubthread_cond_t</ref><sp/>*cond,<sp/><ref refid="structubthread__mutex" kindref="compound">ubthread_mutex_t</ref><sp/>*<ref refid="ubthread_8c_1a18b6be9ca0cec4b0643171232d6f10de" kindref="member">mutex</ref>);</highlight></codeline> <codeline lineno="83"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ubthread_8h_1a64fb8f5f2da2564a6cae8c9f2c3bde10" kindref="member">ubthread_cond_signal</ref>(<ref refid="structubthread__cond" kindref="compound">ubthread_cond_t</ref><sp/>*cond);</highlight></codeline> <codeline lineno="84"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ubthread_8h_1aeb2f756a095ecfddad31354f819623ee" kindref="member">ubthread_cond_broadcast</ref>(<ref refid="structubthread__cond" kindref="compound">ubthread_cond_t</ref><sp/>*cond);</highlight></codeline> <codeline lineno="85"><highlight class="normal"></highlight></codeline> <codeline lineno="86"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight></codeline> </programlisting> <location file="C:/Dev/git/UbixOS/sys/include/ubixos/ubthread.h"/> </compounddef> </doxygen>