Generic interface which enables any event or async activity to be cancelled. More...
#include "libts.h"
#include "I_Thread.h"
#include "I_Continuation.h"
Go to the source code of this file.
Data Structures | |
class | Action |
Represents an operation initiated on a Processor. More... | |
Defines | |
#define | ACTION_RESULT_NONE MAKE_ACTION_RESULT(0) |
#define | ACTION_RESULT_DONE MAKE_ACTION_RESULT(1) |
#define | ACTION_IO_ERROR MAKE_ACTION_RESULT(2) |
#define | ACTION_RESULT_INLINE MAKE_ACTION_RESULT(3) |
#define | MAKE_ACTION_RESULT(_x) (Action*)(((uintptr_t)((_x<<1)+1))) |
#define | ACTION_RESULT(_x) (int)((((uintptr_t)_x)&1)!=0?(((uintptr_t)>>1):(uintptr_t)0)) |
#define | IS_ACTION_RESULT(_x) ((((uintptr_t)_x)&1) != 0) |
Generic interface which enables any event or async activity to be cancelled.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file I_Action.h.
#define ACTION_IO_ERROR MAKE_ACTION_RESULT(2) |
Definition at line 199 of file I_Action.h.
Referenced by ICPPeerReadCont::ICPPeerQueryCont(), ShowCache::lookup_url(), and ICPPeerReadCont::PeerReadStateMachine().
#define ACTION_RESULT | ( | _x | ) | (int)((((uintptr_t)_x)&1)!=0?(((uintptr_t)>>1):(uintptr_t)0)) |
Definition at line 208 of file I_Action.h.
#define ACTION_RESULT_DONE MAKE_ACTION_RESULT(1) |
Definition at line 198 of file I_Action.h.
Referenced by cache_op_ClusterFunction(), Cache::deref(), HttpSM::do_cache_delete_all_alts(), HttpSM::do_cache_lookup_and_read(), HttpSM::do_cache_prepare_action(), HttpSM::do_congestion_control_lookup(), HttpSM::do_hostdb_lookup(), HttpSM::do_hostdb_reverse_lookup(), HttpSM::do_http_server_open(), HttpSM::do_icp_lookup(), HttpSM::do_remap_request(), ICPPeerReadCont::ICPPeerQueryCont(), Cache::link(), Cache::lookup(), ShowCache::lookup_url(), SocksProxy::mainEvent(), Cache::open_read(), HttpCacheSM::open_write(), Cache::open_write(), ICPPeerReadCont::PeerReadStateMachine(), HttpSM::set_next_state(), CacheContinuation::setupReadWriteVC(), HttpSM::state_hostdb_lookup(), TSActionDone(), and LogCollationAccept::~LogCollationAccept().
#define ACTION_RESULT_INLINE MAKE_ACTION_RESULT(3) |
Definition at line 200 of file I_Action.h.
#define ACTION_RESULT_NONE MAKE_ACTION_RESULT(0) |
Definition at line 197 of file I_Action.h.
#define IS_ACTION_RESULT | ( | _x | ) | ((((uintptr_t)_x)&1) != 0) |
Definition at line 211 of file I_Action.h.
#define MAKE_ACTION_RESULT | ( | _x | ) | (Action*)(((uintptr_t)((_x<<1)+1))) |
Definition at line 206 of file I_Action.h.