~ubuntu-branches/ubuntu/trusty/sblim-sfcb/trusty-proposed

« back to all changes in this revision

Viewing changes to msgqueue.h

  • Committer: Bazaar Package Importer
  • Author(s): Thierry Carrez
  • Date: 2009-06-08 12:04:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090608120449-byfplk09rqz8rtg6
Tags: 1.3.3-0ubuntu1
* New upstream release.
* debian/rules: Removed rpath hacks, SFCB default build handles that now.
* Removed 1934753-remove-assignment.diff, now upstream.
* Refreshed patch cim-schema-location.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
extern int noHttpPause;
158
158
extern char *httpPauseStr;
159
159
 
160
 
#define httpGuardId 0
161
 
#define httpProcsId 1
162
 
#define shttpGuardId 2
163
 
#define shttpProcsId 3
164
 
#define provProcBaseId 4
165
 
#define provProcGuardId 0
166
 
#define provProcInuseId 1
167
 
#define provProcAliveId 2
 
160
/* relative Ids within the semaphore set */
 
161
/* static ids */
 
162
#define HTTP_GUARD_ID 0
 
163
#define HTTP_PROCS_ID 1
 
164
#define SHTTP_GUARD_ID 2
 
165
#define SHTTP_PROCS_ID 3
 
166
/* PROV_PROC_BASE_ID must be updated if the number of id's
 
167
 * in the above block changes. */
 
168
#define PROV_PROC_BASE_ID 4
 
169
 
 
170
/* constants for calculating per process ids */
 
171
#define PROV_PROC_GUARD_ID 0
 
172
#define PROV_PROC_INUSE_ID 1
 
173
#define PROV_PROC_ALIVE_ID 2
 
174
/* PROV_PROC_NUM_SEMS must be updated if the number of
 
175
 * PROV_PROC_*_IDs changes above */
 
176
#define PROV_PROC_NUM_SEMS 3
 
177
 
 
178
/* simplify calculation of process specific id */
 
179
#define PROV_GUARD(id) (((id)*(int)(PROV_PROC_NUM_SEMS))+PROV_PROC_GUARD_ID+PROV_PROC_BASE_ID)
 
180
#define PROV_INUSE(id) (((id)*(int)(PROV_PROC_NUM_SEMS))+PROV_PROC_INUSE_ID+PROV_PROC_BASE_ID)
 
181
#define PROV_ALIVE(id) (((id)*(int)(PROV_PROC_NUM_SEMS))+PROV_PROC_ALIVE_ID+PROV_PROC_BASE_ID)
168
182
 
169
183
extern ComSockets *sPairs;
170
184
extern int ptBase,htBase,stBase,htMax,stMax;