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
3159161c
Commit
3159161c
authored
Jul 27, 2018
by
Luca Boccassi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: zmq_timers_* are ready for STABLE
Solution: move them from DRAFT state to STABLE
parent
efbec8e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
37 deletions
+19
-37
zmq.h
include/zmq.h
+19
-19
zmq_draft.h
src/zmq_draft.h
+0
-18
No files found.
include/zmq.h
View file @
3159161c
...
...
@@ -543,6 +543,25 @@ ZMQ_EXPORT int zmq_atomic_counter_dec (void *counter_);
ZMQ_EXPORT
int
zmq_atomic_counter_value
(
void
*
counter_
);
ZMQ_EXPORT
void
zmq_atomic_counter_destroy
(
void
**
counter_p_
);
/******************************************************************************/
/* Scheduling timers */
/******************************************************************************/
#define ZMQ_HAVE_TIMERS
typedef
void
(
zmq_timer_fn
)
(
int
timer_id
,
void
*
arg
);
ZMQ_EXPORT
void
*
zmq_timers_new
(
void
);
ZMQ_EXPORT
int
zmq_timers_destroy
(
void
**
timers_p
);
ZMQ_EXPORT
int
zmq_timers_add
(
void
*
timers
,
size_t
interval
,
zmq_timer_fn
handler
,
void
*
arg
);
ZMQ_EXPORT
int
zmq_timers_cancel
(
void
*
timers
,
int
timer_id
);
ZMQ_EXPORT
int
zmq_timers_set_interval
(
void
*
timers
,
int
timer_id
,
size_t
interval
);
ZMQ_EXPORT
int
zmq_timers_reset
(
void
*
timers
,
int
timer_id
);
ZMQ_EXPORT
long
zmq_timers_timeout
(
void
*
timers
);
ZMQ_EXPORT
int
zmq_timers_execute
(
void
*
timers
);
/******************************************************************************/
/* These functions are not documented by man pages -- use at your own risk. */
...
...
@@ -706,25 +725,6 @@ ZMQ_EXPORT int zmq_socket_get_peer_state (void *socket,
const
void
*
routing_id
,
size_t
routing_id_size
);
/******************************************************************************/
/* Scheduling timers */
/******************************************************************************/
#define ZMQ_HAVE_TIMERS
typedef
void
(
zmq_timer_fn
)
(
int
timer_id
,
void
*
arg
);
ZMQ_EXPORT
void
*
zmq_timers_new
(
void
);
ZMQ_EXPORT
int
zmq_timers_destroy
(
void
**
timers_p
);
ZMQ_EXPORT
int
zmq_timers_add
(
void
*
timers
,
size_t
interval
,
zmq_timer_fn
handler
,
void
*
arg
);
ZMQ_EXPORT
int
zmq_timers_cancel
(
void
*
timers
,
int
timer_id
);
ZMQ_EXPORT
int
zmq_timers_set_interval
(
void
*
timers
,
int
timer_id
,
size_t
interval
);
ZMQ_EXPORT
int
zmq_timers_reset
(
void
*
timers
,
int
timer_id
);
ZMQ_EXPORT
long
zmq_timers_timeout
(
void
*
timers
);
ZMQ_EXPORT
int
zmq_timers_execute
(
void
*
timers
);
#endif // ZMQ_BUILD_DRAFT_API
...
...
src/zmq_draft.h
View file @
3159161c
...
...
@@ -162,24 +162,6 @@ int zmq_socket_get_peer_state (void *socket_,
const
void
*
routing_id_
,
size_t
routing_id_size_
);
/******************************************************************************/
/* Scheduling timers */
/******************************************************************************/
typedef
void
(
zmq_timer_fn
)
(
int
timer_id_
,
void
*
arg_
);
void
*
zmq_timers_new
(
void
);
int
zmq_timers_destroy
(
void
**
timers_p_
);
int
zmq_timers_add
(
void
*
timers_
,
size_t
interval_
,
zmq_timer_fn
handler_
,
void
*
arg_
);
int
zmq_timers_cancel
(
void
*
timers_
,
int
timer_id_
);
int
zmq_timers_set_interval
(
void
*
timers_
,
int
timer_id_
,
size_t
interval_
);
int
zmq_timers_reset
(
void
*
timers_
,
int
timer_id_
);
long
zmq_timers_timeout
(
void
*
timers_
);
int
zmq_timers_execute
(
void
*
timers_
);
#endif // ZMQ_BUILD_DRAFT_API
#endif //ifndef __ZMQ_DRAFT_H_INCLUDED__
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