Zth (libzth)

Functions

ssize_t zth_read (int fd, void *buf, size_t count)
 Like normal read(), but forwards the poll() to the zth::Waiter in case it would block. More...
 
ssize_t zth_write (int fd, void const *buf, size_t count)
 Like normal write(), but forwards the poll() to the zth::Waiter in case it would block. More...
 

Detailed Description

Function Documentation

◆ zth_read()

ssize_t zth_read ( int  fd,
void *  buf,
size_t  count 
)

Like normal read(), but forwards the poll() to the zth::Waiter in case it would block.

This is a C-wrapper for zth::io::read().

Definition at line 43 of file io.h.

◆ zth_write()

ssize_t zth_write ( int  fd,
void const *  buf,
size_t  count 
)

Like normal write(), but forwards the poll() to the zth::Waiter in case it would block.

This is a C-wrapper for zth::io::write().

Definition at line 53 of file io.h.