Skip to content

Commit

Permalink
Fixes: changed class hosting issueReqID(), it is now in comq.
Browse files Browse the repository at this point in the history
Compiler wants consistency in "const" matter (veo_api_version())
  • Loading branch information
efocht committed Dec 7, 2018
1 parent 684b039 commit 84d1d47
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/libveo/AsyncTransfer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace veo {
*/
uint64_t ThreadContext::asyncReadMem(void *dst, uint64_t src, size_t size)
{
auto id = this->issueRequestID();
auto id = this->comq.issueRequestID();
auto f = [this, dst, src, size] (Command *cmd) {
auto rv = this->_readMem(dst, src, size);
cmd->setResult(rv, rv == 0 ? VEO_COMMAND_OK : VEO_COMMAND_ERROR);
Expand All @@ -31,7 +31,7 @@ uint64_t ThreadContext::asyncReadMem(void *dst, uint64_t src, size_t size)
uint64_t ThreadContext::asyncWriteMem(uint64_t dst, const void *src,
size_t size)
{
auto id = this->issueRequestID();
auto id = this->comq.issueRequestID();
auto f = [this, dst, src, size] (Command *cmd) {
auto rv = this->_writeMem(dst, src, size);
cmd->setResult(rv, rv == 0 ? VEO_COMMAND_OK : VEO_COMMAND_ERROR);
Expand Down
4 changes: 2 additions & 2 deletions src/libveo/ThreadContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ int ThreadContext::close()
*/
uint64_t ThreadContext::callAsync(uint64_t addr, CallArgs &args)
{
auto id = this->issueRequestID();
auto id = this->comq.issueRequestID();
auto f = [&args, this, addr, id] (Command *cmd) {
VEO_TRACE(this, "[request #%d] start...", id);
this->_doCall(addr, args);
Expand Down Expand Up @@ -464,7 +464,7 @@ uint64_t ThreadContext::callAsync(uint64_t addr, CallArgs &args)
uint64_t ThreadContext::_callOpenContext(ProcHandle *proc,
uint64_t addr, CallArgs &args)
{
auto id = this->issueRequestID();
auto id = this->comq.issueRequestID();
auto f = [&args, this, proc, addr, id] (Command *cmd) {
VEO_TRACE(this, "[request #%d] start...", id);
this->_doCall(addr, args);
Expand Down
2 changes: 1 addition & 1 deletion src/libveo/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ using veo::VEOException;
*
* @retval integer value with API version
*/
int veo_api_version()
const int veo_api_version()
{
return VEO_API_VERSION;
}
Expand Down

0 comments on commit 84d1d47

Please sign in to comment.