| 116 | |
| 117 | protected: |
| 118 | void* run(void) |
| 119 | { |
| 120 | pgsql_oper dboper(dbp_, id_); |
| 121 | |
| 122 | if (oper_.equal("add", false)) |
| 123 | dboper.pgsql_add(count_); |
| 124 | else if (oper_.equal("get", false)) |
| 125 | dboper.pgsql_get(count_); |
| 126 | else |
| 127 | printf("unknown command: %s\r\n", oper_.c_str()); |
| 128 | |
| 129 | return NULL; |
| 130 | } |
| 131 | |
| 132 | private: |
| 133 | int id_; |