Commit 360ce5711319d09591e4475fcb427f086dc8d578
1 parent
0437c178
Exists in
master
and in
1 other branch
Adding optional "wait" argument on action activation.
Showing
3 changed files
with
9 additions
and
3 deletions
Show diff stats
client/src/include/lib3270/ipc/action.h
client/src/session/local/actions.cc
| ... | ... | @@ -55,10 +55,16 @@ |
| 55 | 55 | return lib3270_action_is_activatable(this->descriptor,this->session->hSession); |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | - void Local::Action::activate() { | |
| 58 | + void Local::Action::activate(time_t seconds) { | |
| 59 | 59 | std::lock_guard<std::mutex> lock(this->session->sync); |
| 60 | + | |
| 60 | 61 | debug(__FUNCTION__,"(",(void *) descriptor,")"); |
| 62 | + | |
| 61 | 63 | chkResponse(lib3270_action_activate(this->descriptor,this->session->hSession)); |
| 64 | + | |
| 65 | + if(seconds) | |
| 66 | + chkResponse(lib3270_wait_for_ready(this->session->hSession,seconds)); | |
| 67 | + | |
| 62 | 68 | } |
| 63 | 69 | |
| 64 | 70 | TN3270::Action * Local::Session::getAction(const LIB3270_ACTION *descriptor) { | ... | ... |
client/src/session/local/private.h