Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

ToolDirectoryServer.C File Reference

#include <Basics.H>
#include <Atom.H>
#include <SRPC.H>
#include <LimService.H>
#include <VestaConfig.H>
#include "ToolDirectoryServer.H"
#include "EvalBasics.H"
#include "Val.H"
#include "Expr.H"
#include "Evaluator_Dir_SRPC.H"
#include <sstream>

Go to the source code of this file.

Functions

Word GetNewHandle ()
Word GetNewHandle (Word handle)
void send_dir (SRPC *srpc, Word dirHandle)
DirInforecv_dir (SRPC *srpc, Word &dirHandle, DirInfos *&dirInfos)
void Evaluator_Dir_Server_Inner (SRPC *srpc, int intfVersion, int procId, void *arg) throw (SRPC::failure, Evaluator::failure)
void Evaluator_Dir_Server (SRPC *srpc, int intfVersion, int procId, void *arg) throw (SRPC::failure)
Text convert_failure (const SRPC::failure &f)
void Evaluator_Dir_Server_Failure (SRPC *srpc, const SRPC::failure &f, void *arg)
void init ()
void create_tool_directory_server ()

Variables

const long CallbackStackSize = 0x20000
RunToolCalls runToolCalls (maxThreads)


Function Documentation

Text convert_failure const SRPC::failure f  ) 
 

Definition at line 380 of file ToolDirectoryServer.C.

References SRPC::buffer_too_small, Text::chars(), SRPC::internal_trouble, SRPC::invalid_parameter, SRPC::failure::msg, SRPC::not_implemented, SRPC::partner_went_away, SRPC::protocol_violation, SRPC::failure::r, SRPC::transport_failure, SRPC::unknown_host, SRPC::unknown_interface, and SRPC::version_skew.

Referenced by Evaluator_Dir_Server_Failure(), init(), main(), and RunToolServerFailure().

void create_tool_directory_server  ) 
 

Definition at line 490 of file ToolDirectoryServer.C.

References init().

Referenced by CreateRootForDeriveds(), and RunTool().

void Evaluator_Dir_Server SRPC srpc,
int  intfVersion,
int  procId,
void *  arg
throw (SRPC::failure)
 

Definition at line 363 of file ToolDirectoryServer.C.

References Evaluator_Dir_Server_Inner(), Basics::mutex::lock(), outputMu, and Basics::mutex::unlock().

Referenced by init().

void Evaluator_Dir_Server_Failure SRPC srpc,
const SRPC::failure f,
void *  arg
 

Definition at line 412 of file ToolDirectoryServer.C.

References convert_failure(), Basics::mutex::lock(), outputMu, SRPC::partner_went_away, SRPC::failure::r, and Basics::mutex::unlock().

Referenced by init().

void Evaluator_Dir_Server_Inner SRPC srpc,
int  intfVersion,
int  procId,
void *  arg
throw (SRPC::failure, Evaluator::failure)
 

Definition at line 180 of file ToolDirectoryServer.C.

References DirInfos::AddDpnd(), DirInfo::b, BangPK, BindingVK, BLenPK, ed_device, ed_directory, ed_file, ed_list, ed_lookup, ed_lookup_index, ed_none, ed_oldlist, emptyText, ErrorVK, evalCalls, EVALUATOR_DIR_SRPC_VERSION, BindingVC::GetElemNoDpnd(), IntegerVK, SRPC::invalid_parameter, Basics::mutex::lock(), DirInfos::LookupDir(), ModelVK, NormPK, NullShortId, outputMu, DirInfo::path, DepPath::Print(), recv_dir(), send_dir(), TextVK, Basics::mutex::unlock(), valFalse, SRPC::version_skew, and ValC::vKind.

Referenced by Evaluator_Dir_Server().

Word GetNewHandle Word  handle  ) 
 

Definition at line 75 of file ToolDirectoryServer.C.

References Basics::mutex::lock(), and Basics::mutex::unlock().

Word GetNewHandle  ) 
 

Definition at line 65 of file ToolDirectoryServer.C.

Referenced by CreateRootForDeriveds(), DirInfos::LookupDir(), and RunTool().

void init  ) 
 

Definition at line 423 of file ToolDirectoryServer.C.

References CallbackStackSize, convert_failure(), Evaluator_Dir_Server(), Evaluator_Dir_Server_Failure(), FdCache::flush(), LimService::Forked_Run(), VestaConfig::get(), VestaConfig::get_int(), init(), LimService::IntfName(), Basics::mutex::lock(), max(), maxThreads, NEW_CONSTR, outputMu, toolDirServerIntfName, and Basics::mutex::unlock().

Referenced by Basics::BufStreamBase::BufStreamBase(), create_tool_directory_server(), FS::FdStreamBase::FdStreamBase(), init(), and main().

DirInfo* recv_dir SRPC srpc,
Word dirHandle,
DirInfos *&  dirInfos
 

Definition at line 91 of file ToolDirectoryServer.C.

References DIR_HANDLE_BYTES, DirInfos::dirInfoTbl, Table< K, V >::Default::Get(), RunToolCalls::Get(), SRPC::invalid_parameter, Basics::mutex::lock(), DirInfos::mu, runToolCalls, and Basics::mutex::unlock().

Referenced by Evaluator_Dir_Server_Inner().

void send_dir SRPC srpc,
Word  dirHandle
 

Definition at line 85 of file ToolDirectoryServer.C.

References DIR_HANDLE_BYTES, RunToolCalls::Get(), runToolCalls, and SRPC::send_bytes().

Referenced by Evaluator_Dir_Server_Inner().


Variable Documentation

const long CallbackStackSize = 0x20000
 

Definition at line 52 of file ToolDirectoryServer.C.

Referenced by init().

RunToolCalls runToolCalls(maxThreads)
 

Referenced by recv_dir(), RunTool(), and send_dir().


Generated on Mon May 8 00:49:03 2006 for Vesta by  doxygen 1.4.2