Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
734a62c1
Commit
734a62c1
authored
Sep 08, 2009
by
malosek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sparc solaris port
parent
844b590b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
7 deletions
+10
-7
configure.in
configure.in
+1
-0
devpoll.cpp
src/devpoll.cpp
+4
-2
object.hpp
src/object.hpp
+1
-1
tcp_socket.cpp
src/tcp_socket.cpp
+2
-2
zmq.cpp
src/zmq.cpp
+2
-2
No files found.
configure.in
View file @
734a62c1
...
...
@@ -48,6 +48,7 @@ case "${host_os}" in
AC_CHECK_LIB(socket, main)
AC_CHECK_LIB(nsl, main)
AC_CHECK_LIB(rt, main)
AC_CHECK_LIB(uuid, main)
CPPFLAGS="-D_REENTRANT -D_PTHREADS $CPPFLAGS"
AC_MSG_CHECKING([wheter atomic operations can be used])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
...
...
src/devpoll.cpp
View file @
734a62c1
...
...
@@ -30,10 +30,12 @@
#include <fcntl.h>
#include <unistd.h>
#include <limits.h>
#include <algorithm>
#include "devpoll.hpp"
#include "err.hpp"
#include "config.hpp"
#include "i_poll_events.hpp"
zmq
::
devpoll_t
::
devpoll_t
()
{
...
...
@@ -156,11 +158,11 @@ void zmq::devpoll_t::stop ()
stopping
=
true
;
}
bool
zmq
::
devpoll_t
::
loop
()
void
zmq
::
devpoll_t
::
loop
()
{
// According to the poll(7d) man page, we can retrieve
// no more then (OPEN_MAX - 1) events.
int
nfds
=
std
::
min
(
max_io_events
,
OPEN_MAX
-
1
);
int
nfds
=
std
::
min
(
(
int
)
max_io_events
,
OPEN_MAX
-
1
);
while
(
!
stopping
)
{
...
...
src/object.hpp
View file @
734a62c1
...
...
@@ -37,7 +37,7 @@ namespace zmq
object_t
(
class
dispatcher_t
*
dispatcher_
,
int
thread_slot_
);
object_t
(
object_t
*
parent_
);
~
object_t
();
virtual
~
object_t
();
int
get_thread_slot
();
dispatcher_t
*
get_dispatcher
();
...
...
src/tcp_socket.cpp
View file @
734a62c1
...
...
@@ -184,4 +184,5 @@ int zmq::tcp_socket_t::read (void *data, int size)
return
(
size_t
)
nbytes
;
}
#endif
\ No newline at end of file
#endif
src/zmq.cpp
View file @
734a62c1
...
...
@@ -292,4 +292,5 @@ unsigned long zmq_stopwatch_stop (void *watch_)
uint64_t
start
=
*
(
uint64_t
*
)
watch_
;
free
(
watch_
);
return
(
unsigned
long
)
(
end
-
start
);
}
\ No newline at end of file
}
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