mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-22 15:07:28 +01:00
Sparc solaris port
This commit is contained in:
parent
844b590b5e
commit
734a62c12d
@ -48,6 +48,7 @@ case "${host_os}" in
|
|||||||
AC_CHECK_LIB(socket, main)
|
AC_CHECK_LIB(socket, main)
|
||||||
AC_CHECK_LIB(nsl, main)
|
AC_CHECK_LIB(nsl, main)
|
||||||
AC_CHECK_LIB(rt, main)
|
AC_CHECK_LIB(rt, main)
|
||||||
|
AC_CHECK_LIB(uuid, main)
|
||||||
CPPFLAGS="-D_REENTRANT -D_PTHREADS $CPPFLAGS"
|
CPPFLAGS="-D_REENTRANT -D_PTHREADS $CPPFLAGS"
|
||||||
AC_MSG_CHECKING([wheter atomic operations can be used])
|
AC_MSG_CHECKING([wheter atomic operations can be used])
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
|
||||||
|
@ -30,10 +30,12 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
#include "devpoll.hpp"
|
#include "devpoll.hpp"
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
#include "config.hpp"
|
#include "config.hpp"
|
||||||
|
#include "i_poll_events.hpp"
|
||||||
|
|
||||||
zmq::devpoll_t::devpoll_t ()
|
zmq::devpoll_t::devpoll_t ()
|
||||||
{
|
{
|
||||||
@ -156,11 +158,11 @@ void zmq::devpoll_t::stop ()
|
|||||||
stopping = true;
|
stopping = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool zmq::devpoll_t::loop ()
|
void zmq::devpoll_t::loop ()
|
||||||
{
|
{
|
||||||
// According to the poll(7d) man page, we can retrieve
|
// According to the poll(7d) man page, we can retrieve
|
||||||
// no more then (OPEN_MAX - 1) events.
|
// 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) {
|
while (!stopping) {
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ namespace zmq
|
|||||||
|
|
||||||
object_t (class dispatcher_t *dispatcher_, int thread_slot_);
|
object_t (class dispatcher_t *dispatcher_, int thread_slot_);
|
||||||
object_t (object_t *parent_);
|
object_t (object_t *parent_);
|
||||||
~object_t ();
|
virtual ~object_t ();
|
||||||
|
|
||||||
int get_thread_slot ();
|
int get_thread_slot ();
|
||||||
dispatcher_t *get_dispatcher ();
|
dispatcher_t *get_dispatcher ();
|
||||||
|
@ -184,4 +184,5 @@ int zmq::tcp_socket_t::read (void *data, int size)
|
|||||||
return (size_t) nbytes;
|
return (size_t) nbytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -292,4 +292,5 @@ unsigned long zmq_stopwatch_stop (void *watch_)
|
|||||||
uint64_t start = *(uint64_t*) watch_;
|
uint64_t start = *(uint64_t*) watch_;
|
||||||
free (watch_);
|
free (watch_);
|
||||||
return (unsigned long) (end - start);
|
return (unsigned long) (end - start);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user