Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
codes
codes
Commits
b113ac1d
Commit
b113ac1d
authored
Aug 04, 2015
by
Jonathan Jenkins
Browse files
more descriptive parameter names
parent
ac0d0f3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
codes/resource-lp.h
View file @
b113ac1d
...
...
@@ -45,15 +45,15 @@ void resource_lp_configure();
*
* block_on_unavail - flag whether to wait to message the requester if
* request cannot be satisfied
*
tag, h
- set in the return client event, using the offsets in cb
*
return_tag, return_header
- set in the return client event, using the offsets in cb
*/
void
resource_lp_get
(
uint64_t
req
,
int
block_on_unavail
,
tw_lp
*
sender
,
struct
codes_mctx
const
*
map_ctx
,
int
tag
,
msg_header
const
*
h
,
int
return_
tag
,
msg_header
const
*
return_header
,
struct
codes_cb_info
const
*
cb
);
/* no callback for frees thus far */
void
resource_lp_free
(
...
...
@@ -65,8 +65,8 @@ void resource_lp_reserve(
int
block_on_unavail
,
tw_lp
*
sender
,
struct
codes_mctx
const
*
map_ctx
,
int
tag
,
msg_header
const
*
h
,
int
return_
tag
,
msg_header
const
*
return_header
,
struct
codes_cb_info
const
*
cb
);
void
resource_lp_get_reserved
(
uint64_t
req
,
...
...
@@ -74,8 +74,8 @@ void resource_lp_get_reserved(
int
block_on_unavail
,
tw_lp
*
sender
,
struct
codes_mctx
const
*
map_ctx
,
int
tag
,
msg_header
const
*
h
,
int
return_
tag
,
msg_header
const
*
return_header
,
struct
codes_cb_info
const
*
cb
);
void
resource_lp_free_reserved
(
uint64_t
req
,
...
...
src/util/resource-lp.c
View file @
b113ac1d
...
...
@@ -459,8 +459,8 @@ static void resource_lp_issue_event_base(
int
block_on_unavail
,
tw_lp
*
sender
,
struct
codes_mctx
const
*
map_ctx
,
int
tag
,
msg_header
const
*
h
,
int
return_
tag
,
msg_header
const
*
return_header
,
struct
codes_cb_info
const
*
cb
)
{
if
(
cb
)
...
...
@@ -478,10 +478,10 @@ static void resource_lp_issue_event_base(
m
->
i
.
req
=
req
;
m
->
i
.
tok
=
tok
;
m
->
i
.
block_on_unavail
=
block_on_unavail
;
if
(
map_ctx
!=
NULL
&&
cb
!=
NULL
&&
h
!=
NULL
)
{
if
(
map_ctx
!=
NULL
&&
cb
!=
NULL
&&
return_header
!=
NULL
)
{
m
->
i
.
cb
.
info
=
*
cb
;
m
->
i
.
cb
.
h
=
*
h
;
m
->
i
.
cb
.
tag
=
tag
;
m
->
i
.
cb
.
h
=
*
return_header
;
m
->
i
.
cb
.
tag
=
return_
tag
;
}
tw_event_send
(
e
);
...
...
@@ -492,12 +492,12 @@ void resource_lp_get(
int
block_on_unavail
,
tw_lp
*
sender
,
struct
codes_mctx
const
*
map_ctx
,
int
tag
,
msg_header
const
*
h
,
int
return_
tag
,
msg_header
const
*
return_header
,
struct
codes_cb_info
const
*
cb
)
{
resource_lp_issue_event_base
(
RESOURCE_GET
,
req
,
0
,
block_on_unavail
,
sender
,
map_ctx
,
tag
,
h
,
cb
);
sender
,
map_ctx
,
return_tag
,
return_header
,
cb
);
}
/* no callback for frees thus far */
...
...
@@ -514,12 +514,12 @@ void resource_lp_reserve(
int
block_on_unavail
,
tw_lp
*
sender
,
struct
codes_mctx
const
*
map_ctx
,
int
tag
,
msg_header
const
*
h
,
int
return_
tag
,
msg_header
const
*
return_header
,
struct
codes_cb_info
const
*
cb
)
{
resource_lp_issue_event_base
(
RESOURCE_RESERVE
,
req
,
0
,
block_on_unavail
,
sender
,
map_ctx
,
tag
,
h
,
cb
);
sender
,
map_ctx
,
return_tag
,
return_header
,
cb
);
}
void
resource_lp_get_reserved
(
uint64_t
req
,
...
...
@@ -527,12 +527,12 @@ void resource_lp_get_reserved(
int
block_on_unavail
,
tw_lp
*
sender
,
struct
codes_mctx
const
*
map_ctx
,
int
tag
,
msg_header
const
*
h
,
int
return_
tag
,
msg_header
const
*
return_header
,
struct
codes_cb_info
const
*
cb
)
{
resource_lp_issue_event_base
(
RESOURCE_GET
,
req
,
tok
,
block_on_unavail
,
sender
,
map_ctx
,
tag
,
h
,
cb
);
sender
,
map_ctx
,
return_tag
,
return_header
,
cb
);
}
void
resource_lp_free_reserved
(
uint64_t
req
,
...
...
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