| 205 | } |
| 206 | |
| 207 | void Compute(OpKernelContext* ctx) override { |
| 208 | WorkQueue* work_queue = new WorkQueue(shared_name_); |
| 209 | Status s = CreateResource(ctx, HandleFromInput(ctx, 0), work_queue); |
| 210 | if (!s.ok() && s.code() != error::ALREADY_EXISTS) { |
| 211 | OP_REQUIRES(ctx, false, s); |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | private: |
| 216 | string shared_name_; |
nothing calls this directly
no test coverage detected