Put an item to the receiver
| 178 | |
| 179 | //! Put an item to the receiver |
| 180 | bool try_put( const T& t ) { |
| 181 | task *res = try_put_task(t); |
| 182 | if(!res) return false; |
| 183 | if (res != SUCCESSFULLY_ENQUEUED) FLOW_SPAWN(*res); |
| 184 | return true; |
| 185 | } |
| 186 | |
| 187 | //! put item to successor; return task to run the successor if possible. |
| 188 | protected: |