@override
| 17 | private: |
| 18 | // @override |
| 19 | void* run(void) { |
| 20 | if (action_ == "add") { |
| 21 | add(max_); |
| 22 | } else if (action_ == "get") { |
| 23 | get(max_); |
| 24 | } else if (action_ == "del") { |
| 25 | del(max_); |
| 26 | } else { |
| 27 | printf("invalid action=%s\r\n", action_.c_str()); |
| 28 | } |
| 29 | |
| 30 | return NULL; |
| 31 | } |
| 32 | |
| 33 | void add(int max) { |
| 34 | Status s; |