|
version 1.2.2.1, 2013/03/19 17:02:58
|
version 1.5.30.1, 2014/02/05 02:24:27
|
|
Line 12 terms:
|
Line 12 terms:
|
| All of the documentation and software included in the ELWIX and AITNET |
All of the documentation and software included in the ELWIX and AITNET |
| Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
| |
|
| Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 | Copyright 2004 - 2014 |
| by Michael Pounov <misho@elwix.org>. All rights reserved. |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
| |
|
| Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
|
Line 50 SUCH DAMAGE.
|
Line 50 SUCH DAMAGE.
|
| #include <pthread.h> |
#include <pthread.h> |
| #include <semaphore.h> |
#include <semaphore.h> |
| #include <elwix.h> |
#include <elwix.h> |
| |
#include <aitio.h> |
| |
|
| #define SHARED_UNKNOWN -1 |
#define SHARED_UNKNOWN -1 |
| #define SHARED_IPC 0 |
#define SHARED_IPC 0 |
|
Line 104 typedef struct tagSess {
|
Line 105 typedef struct tagSess {
|
| (s)->sess.create((sd), (siz), (s), ## __VA_ARGS__)) |
(s)->sess.create((sd), (siz), (s), ## __VA_ARGS__)) |
| #define ATTACH_MEMORY(s) (assert((s) && (s)->sess.attach), (s)->sess.attach((s), NULL)) |
#define ATTACH_MEMORY(s) (assert((s) && (s)->sess.attach), (s)->sess.attach((s), NULL)) |
| #define DETACH_MEMORY(s) (assert((s) && (s)->sess.detach), (s)->sess.detach((s))) |
#define DETACH_MEMORY(s) (assert((s) && (s)->sess.detach), (s)->sess.detach((s))) |
| #define FREE_MEMORY(s) (assert((s) && (s)->sess.destroy); (s)->sess.destroy((s))) | #define FREE_MEMORY(s) (assert((s) && (s)->sess.destroy), (s)->sess.destroy((s))) |
| |
|
| #define IS_SEMOK(s) (assert((s) && (s)->sess.isSemOK), (s)->sess.isSemOK((s))) |
#define IS_SEMOK(s) (assert((s) && (s)->sess.isSemOK), (s)->sess.isSemOK((s))) |
| #define INC_SEM(s) (assert((s) && (s)->sess.incSem), (s)->sess.incSem((s))) |
#define INC_SEM(s) (assert((s) && (s)->sess.incSem), (s)->sess.incSem((s))) |
| #define DEC_SEM(s) (assert((s) && (s)->sess.decSem), (s)->sess.decSem((s))) |
#define DEC_SEM(s) (assert((s) && (s)->sess.decSem), (s)->sess.decSem((s))) |
| #define NOT_SEM(s) (assert((s) && (s)->sess.notSem); (s)->sess.notSem((s))) | #define NOT_SEM(s) (assert((s) && (s)->sess.notSem), (s)->sess.notSem((s))) |
| |
|
| /* --------------------------------------------------------- */ |
/* --------------------------------------------------------- */ |
| |
|
|
Line 206 void ipc_detachSession(sess_t * __restrict s);
|
Line 207 void ipc_detachSession(sess_t * __restrict s);
|
| * @s = Session item |
* @s = Session item |
| * return: -1 null session item, 0 not attached, 1 attached memory |
* return: -1 null session item, 0 not attached, 1 attached memory |
| */ |
*/ |
| inline int sess_isAttached(sess_t * __restrict s); | int sess_isAttached(sess_t * __restrict s); |
| |
|
| |
|
| /* |
/* |