plebble
|
Classes | |
class | ongoing_t |
class | qi |
Public Member Functions | |
send_queue () | |
void | onwakeup () |
void | clear () |
void | dump (String prefix, PrintStream os) |
void | run_body () |
void | await () |
void | set_busy_handler (busyled_t.handler_t hsend) |
![]() | |
bgtask () | |
bgtask (function< void()> run, function< void()> onwakeup) | |
virtual | ~bgtask () |
void | set_run_function (function< void()> r) |
virtual ko | start () |
virtual ko | wait_ready (const chrono::system_clock::time_point &deadline) const |
virtual void | stop () |
virtual void | join () |
void | wakeup () |
bool | isup () const |
bool | isdown () const |
bool | resumed () const |
void | run_ () |
void | reset () |
bool | reset_wait () |
bool | reset_resume () |
bool | is_active () const |
bgtask () | |
bgtask (callback cb0) | |
void | set_callback (callback r) |
ko | start () |
ko | wait_ready (Date deadline) |
void | stop () |
void | join () |
void | run () |
boolean | reset_wait () |
void | wakeup () |
boolean | reset_resume () |
boolean | isup () |
boolean | isdown () |
boolean | resumed () |
void | reset () |
boolean | is_active () |
Public Attributes | |
busyled_t | busyled =new busyled_t() |
Static Public Attributes | |
static int | wmh =CFG.SENDQ_WMH |
static int | schunk =CFG.SENDQ_SCHUNK |
![]() | |
static const char * | KO_81021 |
static ko | KO_81021 =new ko("KO 81021 Ready status never reached.") |
Package Functions | |
int | get_size () |
void | flood (datagram d, client cli) |
void | send (datagram d, client cli, int pri) |
void | purge (client c) |
qi | next () |
qi | next_ () |
qi | replace (qi x) |
Package Attributes | |
PriorityQueue< qi > | q =new PriorityQueue<qi>(CFG.SENDQ_SIZE) |
Lock | lock = new ReentrantLock() |
Condition | cv = lock.newCondition() |
ongoing_t | ongoing =new ongoing_t() |
Additional Inherited Members | |
![]() | |
atomic< short > | resume {0} |
thread * | th {nullptr} |
bool | active {false} |
function< void()> | run |
function< void()> | onwakeup |
mutex | mx_ready |
bool | ready {false} |
condition_variable | cv_ready |
AtomicInteger | resume =new AtomicInteger(0) |
Thread | th =null |
boolean | active =false |
callback | cb =null |
ReentrantLock | mx_ready = new ReentrantLock() |
boolean | ready =false |
Condition | cv_ready =mx_ready.newCondition() |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinepackage |
|
inlinepackage |
|
inlinepackage |
References us.pair< f, s >.first, us.gov.socket.send_queue.ongoing_t.reset(), us.gov.socket.send_queue.ongoing_t.set(), and us.gov.socket.send_queue.qi.skip.
|
inline |
Implements us.gov.bgtask.callback.
|
inlinepackage |
References us.gov.socket.send_queue.ongoing_t.reset(), and us.pair< f, s >.second.
References us.pair< f, s >.second.
|
inline |
Implements us.gov.bgtask.callback.
References us.pair< f, s >.first, us::gov::socket::busyled_t.reset(), us.gov.socket.send_queue.ongoing_t.reset(), us.pair< f, s >.second, us::gov::socket::busyled_t.set(), and us.gov.socket.send_queue.ongoing_t.set().
References us::gov::socket::datagram.completed(), us.pair< f, s >.first, us.pair< f, s >.second, and us::gov::socket::datagram.service.
|
inline |
|
package |
|
package |
|
package |
|
static |
|
static |