libtools
Typedefs | Functions
mailbox.h File Reference

Copyright (C) 2016 Oleh Kravchenko oleg@.nosp@m.kaa..nosp@m.org.u.nosp@m.a More...

Go to the source code of this file.

Typedefs

typedef struct mailbox * mailbox_t
 mailbox handle More...
 

Functions

mailbox_t mailbox_alloc (mailbox_t *mb, unsigned len) __attribute__((warn_unused_result))
 allocate new mailbox More...
 
void mailbox_destroy (mailbox_t mb)
 destroy mailbox More...
 
int mailbox_post (mailbox_t mb, void *data)
 post message into mailbox More...
 
int mailbox_wait (mailbox_t mb, void **data)
 retrive message from mailbox More...
 
int mailbox_timedwait (mailbox_t mb, void **data, unsigned timeout)
 retrive message from mailbox with or wait for message More...
 

Detailed Description

Copyright (C) 2016 Oleh Kravchenko oleg@.nosp@m.kaa..nosp@m.org.u.nosp@m.a

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.