Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
ffab9115
Commit
ffab9115
authored
Feb 14, 2006
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added new parameter in qdb_Get function
parent
65b2eed3
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
52 additions
and
34 deletions
+52
-34
src/exe/rt_qmon/src/rt_qmon.c
src/exe/rt_qmon/src/rt_qmon.c
+2
-2
src/lib/rt/src/rt_cmvolc.c
src/lib/rt/src/rt_cmvolc.c
+4
-3
src/lib/rt/src/rt_cvolc.c
src/lib/rt/src/rt_cvolc.c
+5
-5
src/lib/rt/src/rt_mh_appl.c
src/lib/rt/src/rt_mh_appl.c
+2
-2
src/lib/rt/src/rt_net.c
src/lib/rt/src/rt_net.c
+6
-6
src/lib/rt/src/rt_net.x
src/lib/rt/src/rt_net.x
+2
-2
src/lib/rt/src/rt_qcom.c
src/lib/rt/src/rt_qcom.c
+4
-4
src/lib/rt/src/rt_qcom.h
src/lib/rt/src/rt_qcom.h
+2
-2
src/lib/rt/src/rt_qdb.c
src/lib/rt/src/rt_qdb.c
+8
-5
src/lib/rt/src/rt_qdb.h
src/lib/rt/src/rt_qdb.h
+17
-3
No files found.
src/exe/rt_qmon/src/rt_qmon.c
View file @
ffab9115
/*
* Proview $Id: rt_qmon.c,v 1.
7 2006-02-10 14:53:03
claes Exp $
* Proview $Id: rt_qmon.c,v 1.
8 2006-02-14 05:28:09
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -761,7 +761,7 @@ export_thread ()
while
(
qdb
->
g
->
up
)
{
sched_yield
();
qdb_ScopeLock
{
bp
=
qdb_Get
(
&
sts
,
qp
,
qcom_cTmoEternal
,
NULL
,
NO
);
bp
=
qdb_Get
(
&
sts
,
qp
,
qcom_cTmoEternal
,
NULL
,
0
);
if
(
bp
!=
NULL
)
bp
=
qdb_DetachBuffer
(
&
sts
,
bp
);
}
qdb_ScopeUnlock
;
...
...
src/lib/rt/src/rt_cmvolc.c
View file @
ffab9115
/*
* Proview $Id: rt_cmvolc.c,v 1.
9 2006-02-10 14:40:45
claes Exp $
* Proview $Id: rt_cmvolc.c,v 1.
10 2006-02-14 05:27:43
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -39,6 +39,7 @@
#include "rt_net.h"
#include "rt_cmvolc.h"
#include "rt_errh.h"
#include "rt_qdb.h"
...
...
@@ -229,7 +230,7 @@ cmvolc_GetCachedClass (
smp
->
time
=
time
;
smp
->
aidx
=
nextIdx
;
rmp
=
net_Request
(
sts
,
&
tgt
,
&
put
,
NULL
,
net_eMsg_getCclassR
,
NO
);
rmp
=
net_Request
(
sts
,
&
tgt
,
&
put
,
NULL
,
net_eMsg_getCclassR
,
0
);
if
(
rmp
==
NULL
||
EVEN
(
rmp
->
sts
))
goto
netError
;
...
...
@@ -393,7 +394,7 @@ cmvolc_GetNonExistingClass (
smp
->
cid
=
cid
;
smp
->
aidx
=
nextIdx
;
rmp
=
net_Request
(
sts
,
&
tgt
,
&
put
,
NULL
,
net_eMsg_getGclassR
,
YES
);
rmp
=
net_Request
(
sts
,
&
tgt
,
&
put
,
NULL
,
net_eMsg_getGclassR
,
qdb_mGet_multipleGet
);
if
(
rmp
==
NULL
||
EVEN
(
rmp
->
sts
))
goto
netError
;
...
...
src/lib/rt/src/rt_cvolc.c
View file @
ffab9115
/*
* Proview $Id: rt_cvolc.c,v 1.
6 2006-02-10 14:40:45
claes Exp $
* Proview $Id: rt_cvolc.c,v 1.
7 2006-02-14 05:27:43
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -75,7 +75,7 @@ fetch (
gdb_Unlock
;
rsp
=
net_Request
(
&
lsts
,
&
tgt
,
put
,
&
get
,
net_eMsg_objectR
,
NO
);
rsp
=
net_Request
(
&
lsts
,
&
tgt
,
put
,
&
get
,
net_eMsg_objectR
,
0
);
gdb_Lock
;
...
...
@@ -146,7 +146,7 @@ cvolc_GetObjectInfo (
tgt
.
qix
=
net_cProcHandler
;
smp
->
aref
=
*
rarp
;
rmp
=
net_Request
(
sts
,
&
tgt
,
&
put
,
NULL
,
net_eMsg_getObjectInfoR
,
NO
);
rmp
=
net_Request
(
sts
,
&
tgt
,
&
put
,
NULL
,
net_eMsg_getObjectInfoR
,
0
);
if
(
rmp
==
NULL
)
{
return
NULL
;
...
...
@@ -240,7 +240,7 @@ cvolc_GetObjectInfo (
tgt
.
qix
=
net_cProcHandler
;
smp
->
aref
=
*
arp
;
rmp
=
net_Request
(
sts
,
&
tgt
,
&
put
,
NULL
,
net_eMsg_getObjectInfoR
,
NO
);
rmp
=
net_Request
(
sts
,
&
tgt
,
&
put
,
NULL
,
net_eMsg_getObjectInfoR
,
0
);
if
(
rmp
==
NULL
)
{
return
NULL
;
...
...
@@ -441,7 +441,7 @@ cvolc_SetObjectInfo (
}
}
rmp
=
net_Request
(
sts
,
&
tgt
,
&
put
,
NULL
,
net_eMsg_setObjectInfoR
,
NO
);
rmp
=
net_Request
(
sts
,
&
tgt
,
&
put
,
NULL
,
net_eMsg_setObjectInfoR
,
0
);
if
(
rmp
==
NULL
)
{
return
NO
;
...
...
src/lib/rt/src/rt_mh_appl.c
View file @
ffab9115
/*
* Proview $Id: rt_mh_appl.c,v 1.
6 2006-02-10 14:40:45
claes Exp $
* Proview $Id: rt_mh_appl.c,v 1.
7 2006-02-14 05:27:43
claes Exp $
* Copyright (C) 2005 SSAB Oxelösund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -361,7 +361,7 @@ sendAndReceive (
get
.
data
=
NULL
;
rvoid
=
qcom_Request
(
&
sts
,
&
lAppl
.
handler
,
&
put
,
&
lAppl
.
head
.
qid
,
&
get
,
1000
*
3600
,
NO
);
rvoid
=
qcom_Request
(
&
sts
,
&
lAppl
.
handler
,
&
put
,
&
lAppl
.
head
.
qid
,
&
get
,
1000
*
3600
,
0
);
if
(
EVEN
(
sts
))
{
errh_Error
(
"mhAppl, sendAndReceive, qcom_Get failed
\n
%m"
,
sts
);
qcom_Free
(
NULL
,
put
.
data
);
...
...
src/lib/rt/src/rt_net.c
View file @
ffab9115
/*
* Proview $Id: rt_net.c,v 1.
6 2006-02-10 14:40:45
claes Exp $
* Proview $Id: rt_net.c,v 1.
7 2006-02-14 05:27:43
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -147,7 +147,7 @@ Request (
qcom_sPut
*
put
,
qcom_sGet
*
get
,
net_eMsg
subtype
,
pwr_tB
oolean
multipleReq
pwr_tB
itMask
flags
);
typedef
bool_t
(
*
tFuncXdr
)(
XDR
*
,
void
*
);
...
...
@@ -486,7 +486,7 @@ Request (
qcom_sPut
*
put
,
qcom_sGet
*
get
,
net_eMsg
subtype
,
pwr_tB
oolean
multipleReq
pwr_tB
itMask
flags
)
{
void
*
gmp
;
...
...
@@ -505,7 +505,7 @@ Request (
if
(
!
ConvertPut
(
sts
,
tgt
,
put
,
put
->
data
))
return
NULL
;
gmp
=
qcom_Request
(
sts
,
tgt
,
put
,
&
gdbroot
->
my_qid
,
get
,
net_cSendRcvTmo
,
multipleReq
);
gmp
=
qcom_Request
(
sts
,
tgt
,
put
,
&
gdbroot
->
my_qid
,
get
,
net_cSendRcvTmo
,
flags
);
if
(
gmp
==
NULL
)
return
NULL
;
...
...
@@ -666,7 +666,7 @@ net_Request (
qcom_sPut
*
put
,
qcom_sGet
*
get
,
net_eMsg
gtype
,
pwr_tB
oolean
multipleReq
pwr_tB
itMask
flags
)
{
void
*
p
;
...
...
@@ -678,7 +678,7 @@ net_Request (
((
net_sMessage
*
)
put
->
data
)
->
nid
=
gdbroot
->
db
->
nid
;
NET_LOCK
;
p
=
Request
(
sts
,
tgt
,
put
,
get
,
gtype
,
multipleReq
);
p
=
Request
(
sts
,
tgt
,
put
,
get
,
gtype
,
flags
);
NET_UNLOCK
;
return
p
;
...
...
src/lib/rt/src/rt_net.x
View file @
ffab9115
#ifdef RPC_HDR
%/*
% * Proview $Id: rt_net.x,v 1.
8 2006-02-10 14:40:45
claes Exp $
% * Proview $Id: rt_net.x,v 1.
9 2006-02-14 05:27:43
claes Exp $
% * Copyright (C) 2005 SSAB Oxelsund AB.
% *
% * This program is free software; you can redistribute it and/or
...
...
@@ -1305,7 +1305,7 @@ struct net_sGetCclass {
% qcom_sPut *put,
% qcom_sGet *get,
% net_eMsg gtype,
% pwr_tB
oolean multipleReq
% pwr_tB
itMask flags
%);
%
%pwr_tBoolean
...
...
src/lib/rt/src/rt_qcom.c
View file @
ffab9115
/*
* Proview $Id: rt_qcom.c,v 1.
6 2006-02-10 14:40:45
claes Exp $
* Proview $Id: rt_qcom.c,v 1.
7 2006-02-14 05:27:43
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -404,7 +404,7 @@ qcom_Get (
if
(
qp
->
aid
.
aix
!=
qdb
->
my_aix
)
pwr_StatusBreak
(
*
sts
,
QCOM__NOTOWNED
);
if
(
qp
->
type
!=
qdb_eQue_private
)
pwr_StatusBreak
(
*
sts
,
QCOM__NOTOWNED
);
bp
=
qdb_Get
(
sts
,
qp
,
tmo
,
gp
,
NO
);
bp
=
qdb_Get
(
sts
,
qp
,
tmo
,
gp
,
0
);
if
(
bp
!=
NULL
)
{
qdb
->
ap
->
get_count
++
;
...
...
@@ -949,7 +949,7 @@ qcom_Request (
const
qcom_sQid
*
gqid
,
qcom_sGet
*
gp
,
int
tmo
,
pwr_tB
oolean
multipleReq
pwr_tB
itMask
flags
)
{
qdb_sBuffer
*
pbp
;
...
...
@@ -1009,7 +1009,7 @@ qcom_Request (
pbp
->
b
.
noderef
=
pool_Reference
(
sts
,
&
qdb
->
pool
,
np
);
}
gbp
=
qdb_Request
(
sts
,
pbp
,
pqp
,
gqp
,
tmo
,
gp
,
multipleReq
);
gbp
=
qdb_Request
(
sts
,
pbp
,
pqp
,
gqp
,
tmo
,
gp
,
flags
);
if
(
ODD
(
sts
))
qdb
->
ap
->
request_count
++
;
}
qdb_ScopeUnlock
;
...
...
src/lib/rt/src/rt_qcom.h
View file @
ffab9115
/*
* Proview $Id: rt_qcom.h,v 1.
7 2006-02-10 14:40:45
claes Exp $
* Proview $Id: rt_qcom.h,v 1.
8 2006-02-14 05:27:43
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -414,7 +414,7 @@ void* qcom_Request (
const
qcom_sQid
*
myQ
,
qcom_sGet
*
get
,
int
tmo_ms
,
pwr_tB
oolean
multipleReq
pwr_tB
itMask
flags
);
pwr_tBoolean
qcom_Unbind
(
...
...
src/lib/rt/src/rt_qdb.c
View file @
ffab9115
/*
* Proview $Id: rt_qdb.c,v 1.
9 2006-02-10 14:40:45
claes Exp $
* Proview $Id: rt_qdb.c,v 1.
10 2006-02-14 05:27:43
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -930,7 +930,7 @@ qdb_Get (
qdb_sQue
*
qp
,
int
tmo
,
qcom_sGet
*
gp
,
pwr_tB
oolean
multipleGet
pwr_tB
itMask
flags
)
{
pwr_tStatus
csts
;
...
...
@@ -938,10 +938,13 @@ qdb_Get (
qdb_sBuffer
*
sbp
;
/* pointer to source buffer */
qdb_sBuffer
*
nbp
;
pwr_dStatus
(
sts
,
status
,
QCOM__SUCCESS
);
qdb_mGet
lflags
;
lflags
.
m
=
flags
;
qdb_AssumeLocked
;
if
(
!
multipleGet
&&
!
pool_QisEmpty
(
sts
,
&
qdb
->
pool
,
&
qp
->
read_lh
))
if
(
!
lflags
.
b
.
multipleGet
&&
!
pool_QisEmpty
(
sts
,
&
qdb
->
pool
,
&
qp
->
read_lh
))
pwr_Return
(
NULL
,
sts
,
QCOM__ALLOCQUOTA
);
bp
=
qdb_Deque
(
sts
,
qp
,
tmo
);
...
...
@@ -1163,7 +1166,7 @@ qdb_Request (
qdb_sQue
*
gqp
,
int
tmo
,
qcom_sGet
*
gp
,
pwr_tB
oolean
multipleReq
pwr_tB
itMask
flags
)
{
qdb_sBuffer
*
gbp
=
NULL
;
...
...
@@ -1193,7 +1196,7 @@ qdb_Request (
gqp
->
flags
.
b
.
reply
=
1
;
if
(
!
qdb_Enque
(
sts
,
pbp
,
pqp
))
return
NULL
;
gbp
=
qdb_Get
(
sts
,
gqp
,
tmo
,
gp
,
multipleReq
);
gbp
=
qdb_Get
(
sts
,
gqp
,
tmo
,
gp
,
flags
);
gqp
->
flags
.
b
.
reply
=
0
;
if
(
!
pbp
->
c
.
flags
.
b
.
remote
)
return
gbp
;
...
...
src/lib/rt/src/rt_qdb.h
View file @
ffab9115
/*
* Proview $Id: rt_qdb.h,v 1.
7 2006-02-10 14:40:45
claes Exp $
* Proview $Id: rt_qdb.h,v 1.
8 2006-02-14 05:27:43
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -212,6 +212,20 @@ typedef union {
}
qdb_mAdd
;
typedef
union
{
pwr_tBitMask
m
;
pwr_32Bits
(
pwr_Bits
(
multipleGet
,
1
),
pwr_Bits
(
fill
,
31
),,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
)
b
;
#define qdb_mGet__ 0
#define qdb_mGet_multipleGet pwr_Bit(0)
#define qdb_mGet_ (~qdb_mGet__)
}
qdb_mGet
;
typedef
union
{
pwr_tBitMask
m
;
pwr_32Bits
(
...
...
@@ -753,7 +767,7 @@ void qdb_Eput (pwr_tStatus*, qdb_sQue*);
pwr_tBoolean
qdb_Signal
(
pwr_tStatus
*
,
qdb_sQue
*
);
int
qdb_Wait
(
pwr_tStatus
*
,
qdb_sQue
*
,
qdb_sQue
*
,
int
);
void
qdb_Free
(
pwr_tStatus
*
,
qdb_sBuffer
*
);
qdb_sBuffer
*
qdb_Get
(
pwr_tStatus
*
,
qdb_sQue
*
,
int
,
qcom_sGet
*
,
pwr_tB
oolean
multipleGet
);
qdb_sBuffer
*
qdb_Get
(
pwr_tStatus
*
,
qdb_sQue
*
,
int
,
qcom_sGet
*
,
pwr_tB
itMask
);
qdb_sQbond
*
qdb_GetBond
(
pwr_tStatus
*
,
qdb_sQue
*
,
qdb_sQue
*
);
void
qdb_GetInfo
(
qcom_sGet
*
,
qdb_sBuffer
*
);
qdb_sLocal
*
qdb_MapDb
(
pwr_tStatus
*
);
...
...
@@ -765,7 +779,7 @@ void qdb_RemoveAppl (pwr_tStatus*, qdb_sAppl*);
void
qdb_PutInfo
(
qdb_sBuffer
*
,
qcom_sPut
*
,
const
qcom_sQid
*
,
qcom_tRid
);
pwr_tBoolean
qdb_RemoveQue
(
pwr_tStatus
*
,
qdb_sQue
*
);
qdb_sQue
*
qdb_Que
(
pwr_tStatus
*
,
const
qcom_sQid
*
,
qdb_sNode
**
);
void
*
qdb_Request
(
pwr_tStatus
*
,
qdb_sBuffer
*
,
qdb_sQue
*
,
qdb_sQue
*
,
int
,
qcom_sGet
*
,
pwr_tB
oolean
);
void
*
qdb_Request
(
pwr_tStatus
*
,
qdb_sBuffer
*
,
qdb_sQue
*
,
qdb_sQue
*
,
int
,
qcom_sGet
*
,
pwr_tB
itMask
);
void
qdb_DumpPool
();
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment