Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
asapo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Joao Alvim Oliveira Dias De Almeida
asapo
Commits
48acda65
Commit
48acda65
authored
7 years ago
by
Patzke
Browse files
Options
Downloads
Patches
Plain Diff
Windows fix
parent
dc52eac3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/cpp/src/system_io.cpp
+2
-3
2 additions, 3 deletions
common/cpp/src/system_io.cpp
producer/api/CMakeLists.txt
+4
-0
4 additions, 0 deletions
producer/api/CMakeLists.txt
with
6 additions
and
3 deletions
common/cpp/src/system_io.cpp
+
2
−
3
View file @
48acda65
...
...
@@ -46,9 +46,8 @@ void SystemIO::Skip(SocketDescriptor socket_fd, size_t length, hidra2::IOErrors*
std
::
unique_ptr
<
uint8_t
[]
>
buffer
;
try
{
buffer
.
reset
(
new
uint8_t
[
kSkipBufferSize
]);
}
catch
(
std
::
exception
&
e
)
{
assert
(
false
);
*
err
=
IOErrors
::
kUnknownError
;
}
catch
(...)
{
*
err
=
IOErrors
::
kMemoryAllocationError
;
return
;
}
size_t
already_skipped
=
0
;
...
...
This diff is collapsed.
Click to expand it.
producer/api/CMakeLists.txt
+
4
−
0
View file @
48acda65
...
...
@@ -12,6 +12,10 @@ add_library(${TARGET_NAME} STATIC ${SOURCE_FILES} $<TARGET_OBJECTS:common>)
target_include_directories
(
${
TARGET_NAME
}
PUBLIC include
${
CMAKE_SOURCE_DIR
}
/common/cpp/include
)
set_target_properties
(
${
TARGET_NAME
}
PROPERTIES LINKER_LANGUAGE CXX
)
#Add all necessary common libraries
GET_PROPERTY
(
HIDRA2_COMMON_IO_LIBRARIES GLOBAL PROPERTY HIDRA2_COMMON_IO_LIBRARIES
)
target_link_libraries
(
${
TARGET_NAME
}
${
HIDRA2_COMMON_IO_LIBRARIES
}
)
################################
# Testing
################################
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment