equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "fs_methodcall.h" |
|
20 #include "functionserver.h" |
|
21 #include "logger.h" |
|
22 |
|
23 |
|
24 OS_EXPORT void MethodCaller::ExecuteRegularFunctor(const Functor& functor, java::util::FunctionServer* functionServer, int* /*res*/) |
|
25 { |
|
26 JELOG2(EUtils); |
|
27 functionServer->executeInServerThread(functor); |
|
28 } |
|
29 |
|
30 /** |
|
31 * Function executor for leaving functors |
|
32 * |
|
33 */ |
|
34 OS_EXPORT void MethodCaller::ExecuteLeavingFunctorL(const Functor& functor, java::util::FunctionServer* functionServer, int* /*res*/) |
|
35 { |
|
36 JELOG2(EUtils); |
|
37 int error = functionServer->executeInServerThread(functor); |
|
38 if (error) // Do not use LeaveIfError(), we want to handle positive error codes as well |
|
39 { |
|
40 User::Leave(error); |
|
41 } |
|
42 } |
|
43 /** |
|
44 * Function executor for leaving functors with trap |
|
45 * |
|
46 */ |
|
47 OS_EXPORT void MethodCaller::ExecuteTrapingFunctorL(const Functor& functor, java::util::FunctionServer* functionServer, int* res) |
|
48 { |
|
49 JELOG2(EUtils); |
|
50 *res = functionServer->executeInServerThread(functor); |
|
51 } |