Skip to content

Commit 9a77c17

Browse files
committed
Use Compat for AsyncCondition on 0.4
1 parent 08154f4 commit 9a77c17

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/pubsub.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#API for publishing and subscribing to message topics
22
export Publisher, Subscriber, publish
33

4+
using Compat
5+
46
type Publisher{MsgType<:MsgT}
57
o::PyObject
68

@@ -28,7 +30,7 @@ type Subscriber{MsgType<:MsgT}
2830
@debug("Creating <$(string(MsgType))> subscriber on topic: '$topic'")
2931
rospycls = _get_rospy_class(MsgType)
3032

31-
cond = Base.AsyncCondition()
33+
cond = Compat.AsyncCondition()
3234
mqueue = _py_ros_callbacks["MessageQueue"](CB_NOTIFY_PTR, cond.handle)
3335
subobj = __rospy__[:Subscriber](ascii(topic), rospycls, mqueue["storemsg"]; kwargs...)
3436

src/services.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type Service{SrvType <: ServiceDefinition}
4242
@debug("Providing <$SrvType> service at '$name'")
4343
rospycls = _get_rospy_class(SrvType)
4444

45-
cond = Base.AsyncCondition()
45+
cond = Compat.AsyncCondition()
4646
pysrv = _py_ros_callbacks["ServiceCallback"](CB_NOTIFY_PTR, cond.handle)
4747

4848
srvobj = try

0 commit comments

Comments
 (0)