MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / run

Method run

src/jrd/svc.cpp:1940–1965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1938
1939
1940THREAD_ENTRY_DECLARE Service::run(THREAD_ENTRY_PARAM arg)
1941{
1942 int exit_code = -1;
1943 try
1944 {
1945 Service* svc = (Service*)arg;
1946 RefPtr<SvcMutex> ref(svc->svc_existence);
1947 exit_code = svc->svc_service_run->serv_thd(svc);
1948
1949 Thread svcThread(std::move(svc->svc_thread));
1950
1951 svc->started();
1952 svc->unblockQueryGet();
1953 svc->finish(SVC_finished);
1954
1955 threadCollect->ending(std::move(svcThread));
1956 }
1957 catch (const Exception& ex)
1958 {
1959 // Not much we can do here
1960 exit_code = -1;
1961 iscLogException("Exception in Service::run():", ex);
1962 }
1963
1964 return (THREAD_ENTRY_RETURN)(IPTR) exit_code;
1965}
1966
1967
1968void Service::start(USHORT spb_length, const UCHAR* spb_data)

Callers 7

create_processMethod · 0.45
ProfilerListenerMethod · 0.45
CCH_init2Function · 0.45
VIO_initFunction · 0.45
create_processMethod · 0.45
start_sweeperFunction · 0.45
setupMethod · 0.45

Calls 6

iscLogExceptionFunction · 0.85
unblockQueryGetMethod · 0.80
endingMethod · 0.80
moveFunction · 0.50
startedMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected