| | 82 | |
| | 83 | == Using the EnterMethod functionality == |
| | 84 | |
| | 85 | If using events seems to complicated, Ariba provides an easier method called EnterMethod. It simply interrupts the Ariba thread, puts it into a safe state so you can call whatever function you require on the Ariba interface. |
| | 86 | |
| | 87 | {{{ |
| | 88 | #!cpp |
| | 89 | #include ariba/utility/system/EnterMethod.h" |
| | 90 | using ariba::utility::EnterMethod; |
| | 91 | ... |
| | 92 | // other thread |
| | 93 | EnterMethod e; |
| | 94 | e.enter(); |
| | 95 | // ariba thread halted in save state |
| | 96 | // run your code |
| | 97 | ... |
| | 98 | }}} |
| | 99 | |