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, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Definition in file rtai_sem.h.#include <rtai_types.h>
#include <rtai_nam2num.h>
#include <rtai_sched.h>
#include <rtai_lxrt.h>
Include dependency graph for rtai_sem.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | rt_semaphore |
Defines | |
#define | RT_SEM_MAGIC 0x3f83ebb |
#define | SEM_TIMOUT (0xFffe) |
#define | SEM_ERR (0xFfff) |
#define | rt_sem_init(name, value) rt_typed_sem_init(name, value, CNT_SEM) |
#define | rt_named_sem_init(sem_name, value) rt_typed_named_sem_init(sem_name, value, CNT_SEM) |
#define | rt_cond_init(name) rt_typed_sem_init(name, 0, BIN_SEM) |
#define | rt_cond_delete(cnd) rt_sem_delete(cnd) |
#define | rt_cond_destroy(cnd) rt_sem_delete(cnd) |
#define | rt_cond_broadcast(cnd) rt_sem_broadcast(cnd) |
#define | rt_cond_timedwait(cnd, mtx, time) rt_cond_wait_until(cnd, mtx, time) |
Typedefs | |
typedef rt_semaphore | SEM |
typedef SEM | CND |
Functions | |
SEM * | rt_typed_sem_init (unsigned long name, int value, int type) |
int | rt_sem_delete (SEM *sem) |
SEM * | rt_typed_named_sem_init (const char *name, int value, int type) |
int | rt_named_sem_delete (SEM *sem) |
int | rt_sem_signal (SEM *sem) |
int | rt_sem_broadcast (SEM *sem) |
int | rt_sem_wait (SEM *sem) |
int | rt_sem_wait_if (SEM *sem) |
int | rt_sem_wait_until (SEM *sem, RTIME time) |
int | rt_sem_wait_timed (SEM *sem, RTIME delay) |
int | rt_sem_wait_barrier (SEM *sem) |
int | rt_sem_count (SEM *sem) |
int | rt_cond_signal (CND *cnd) |
int | rt_cond_wait (CND *cnd, SEM *mutex) |
int | rt_cond_wait_until (CND *cnd, SEM *mutex, RTIME time) |
int | rt_cond_wait_timed (CND *cnd, SEM *mutex, RTIME delay) |
|
Definition at line 344 of file rtai_sem.h. |
|
Definition at line 342 of file rtai_sem.h. |
|
Definition at line 343 of file rtai_sem.h. |
|
Definition at line 345 of file rtai_sem.h. |
|
Definition at line 257 of file rtai_sem.h. |
|
Definition at line 31 of file rtai_sem.h. Referenced by rt_cond_signal(), rt_cond_wait(), rt_cond_wait_until(), rt_sem_broadcast(), rt_sem_delete(), rt_sem_signal(), rt_sem_wait(), rt_sem_wait_barrier(), rt_sem_wait_if(), rt_sem_wait_until(), and rt_typed_sem_init(). |
|
|
Definition at line 33 of file rtai_sem.h. Referenced by _rt_msg_broadcast(), _rt_msg_broadcast_until(), _rt_msg_receive(), _rt_msg_receive_until(), _rt_msg_send(), _rt_msg_send_until(), mbx_wait_until(), pthread_cond_timedwait_rt(), rt_cond_wait_until(), rt_rwl_rdlock(), rt_rwl_rdlock_until(), rt_rwl_wrlock(), rt_rwl_wrlock_until(), rt_sem_wait_until(), and rt_task_suspend_until(). |
|
Definition at line 56 of file rtai_sem.h. Referenced by rt_cond_signal(), rt_cond_wait(), rt_cond_wait_timed(), and rt_cond_wait_until(). |
|
|
Definition at line 347 of file rtai_sem.h. References BIDX, CND, COND_SIGNAL, rtai_lxrt_t::i, LOW, rtai_lxrt(), and SIZARG. Here is the call graph for this function: ![]() |
|
Definition at line 353 of file rtai_sem.h. References BIDX, CND, COND_WAIT, rtai_lxrt_t::i, LOW, rtai_lxrt(), SEM, and SIZARG. Here is the call graph for this function: ![]() |
|
Definition at line 365 of file rtai_sem.h. References BIDX, CND, COND_WAIT_TIMED, rtai_lxrt_t::i, LOW, rtai_lxrt(), RTIME, SEM, and SIZARG. Here is the call graph for this function: ![]() |
|
Definition at line 359 of file rtai_sem.h. References BIDX, CND, COND_WAIT_UNTIL, rtai_lxrt_t::i, LOW, rtai_lxrt(), RTIME, SEM, and SIZARG. Here is the call graph for this function: ![]() |
|
Definition at line 272 of file rtai_sem.h. References BIDX, rtai_lxrt_t::i, LOW, NAMED_SEM_DELETE, rtai_lxrt(), SEM, and SIZARG. Here is the call graph for this function: ![]() |
|
Definition at line 284 of file rtai_sem.h. References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), SEM, SEM_BROADCAST, and SIZARG. Here is the call graph for this function: ![]() |
|
Definition at line 320 of file rtai_sem.h. References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), SEM, SEM_COUNT, and SIZARG. Here is the call graph for this function: ![]() |
|
Definition at line 260 of file rtai_sem.h. References BIDX, rtai_lxrt_t::i, LOW, LXRT_SEM_DELETE, rtai_lxrt(), SEM, and SIZARG. Here is the call graph for this function: ![]() |
|
Definition at line 278 of file rtai_sem.h. References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), SEM, SEM_SIGNAL, and SIZARG. Here is the call graph for this function: ![]() |
|
Definition at line 290 of file rtai_sem.h. References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), SEM, SEM_WAIT, and SIZARG. Referenced by port_server_fun(), and soft_stub_fun(). Here is the call graph for this function: ![]() |
|
Definition at line 314 of file rtai_sem.h. References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), SEM, SEM_WAIT_BARRIER, and SIZARG. Here is the call graph for this function: ![]() |
|
Definition at line 296 of file rtai_sem.h. References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), SEM, SEM_WAIT_IF, and SIZARG. Here is the call graph for this function: ![]() |
|
Definition at line 308 of file rtai_sem.h. References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), RTIME, SEM, SEM_WAIT_TIMED, and SIZARG. Here is the call graph for this function: ![]() |
|
Definition at line 302 of file rtai_sem.h. References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), RTIME, SEM, SEM_WAIT_UNTIL, and SIZARG. Here is the call graph for this function: ![]() |
|
Definition at line 266 of file rtai_sem.h. References BIDX, LOW, nam2num(), NAMED_SEM_INIT, rtai_lxrt(), SEM, SIZARG, and rtai_lxrt_t::v. Referenced by RT_typed_named_sem_init(). Here is the call graph for this function: ![]() |
|
Definition at line 232 of file rtai_sem.h. References BIDX, LOW, LXRT_SEM_INIT, rtai_lxrt(), SEM, SIZARG, and rtai_lxrt_t::v. Here is the call graph for this function: ![]() |