Home | History | Annotate | Download | only in dbus

Lines Matching defs:Timeout

102 // The class is used for monitoring the timeout used for D-Bus method
105 // Unlike Watch, Timeout is a ref counted object, to ensure that |this| of
110 class Timeout : public base::RefCountedThreadSafe<Timeout> {
112 explicit Timeout(DBusTimeout* timeout)
113 : raw_timeout_(timeout),
120 // Returns true if the timeout is ready to be monitored.
125 // Starts monitoring the timeout.
128 base::Bind(&Timeout::HandleTimeout,
134 // Stops monitoring the timeout.
147 // Cleans up the raw_timeout and marks that timeout is completed.
156 friend class base::RefCountedThreadSafe<Timeout>;
157 ~Timeout() {
160 // Handles the timeout.
162 // If the timeout is marked completed, we should do nothing. This can
496 // The shutdown should not hang, but set timeout just in case.
498 const base::TimeDelta timeout(base::TimeDelta::FromSeconds(kTimeoutSecs));
499 const bool signaled = on_shutdown_.TimedWait(timeout);
1068 // timeout will be deleted when raw_timeout is removed in
1070 Timeout* timeout = new Timeout(raw_timeout);
1071 if (timeout->IsReadyToBeMonitored()) {
1072 timeout->StartMonitoring(this);
1081 Timeout* timeout = static_cast<Timeout*>(dbus_timeout_get_data(raw_timeout));
1082 timeout->Complete();
1089 Timeout* timeout = static_cast<Timeout*>(dbus_timeout_get_data(raw_timeout));
1090 if (timeout->IsReadyToBeMonitored()) {
1091 timeout->StartMonitoring(this);
1093 timeout->StopMonitoring();