PthThread
Object Hierarchy:
Description:
public class PthThread : Object
Namespace: Wrapped.LibPth
Package: Netsukuku - vala port
Content:
Static methods:
- public static void set_main_thread (
pth_st
* main_pth_st)
- public static
bool
is_main_thread ()
- public static PthThread self ()
- public static PthThread spawn (Attribute attr, FunctionDelegate f, void* user_data)
- public static
bool
equal_func (PthThread a, PthThread b)
- public static
uint
hash_func (PthThread a)
- public static void cancel_point ()
- public static void join (PthThread joinable, void** retval)
- public static void pth_yield (PthThread? next)
- public static void nap (
long
sec, long
usec)
- public static
int
system (string
? command)
- public static
Socket
socket_accept (Socket
s) throws Error
- public static void socket_connect (
Socket
s, string
address, uint16
port) throws Error
- public static
ssize_t
socket_send (Socket
s, uchar
[] data) throws Error
- public static
ssize_t
socket_recv (Socket
s, out uchar
[] data, int
maxlen) throws Error
- public static
ssize_t
socket_sendto (Socket
s, uchar
[] data, string
address, uint16
port) throws Error
- public static
ssize_t
socket_recvfrom (Socket
s, out uchar
[] data, int
maxlen, out string
rmt_ip, out uint16
rmt_port) throws Error
- public static void exit (void* exit_val)
This terminates the current thread. Whether it's immediately removed
from the system or inserted into the dead queue of the scheduler depends on its join type which was specified at spawning time. If it
has the attribute PTH_ATTR_JOINABLE set to FALSE, it's immediately removed and value is ignored. Else the thread is inserted into the
dead queue and value remembered for a subsequent pth_join(3) call by another thread. If invoked on the "main" thread this function
waits for all other threads to terminate, kills the threading system and then terminates the process returning the value.
Methods: