summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhou Mingying <zhoumy@fujitsu.com>2022-07-08 17:36:32 +0800
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2022-07-11 16:14:57 +0000
commitbca7a3095f8f39ee685dba7dd23581e767a765ad (patch)
treedc4b7d3fa75a13ce00d12b8267062a4f85ec2203
parent0502646dd3538d4f3c9d85f07a8d211c3b48f7fc (diff)
dbus: Delete patch dbus-c++-threading.patch not used any longer
The patch dbus-c++-threading.patch is no longer used in dbus. So delete this unused patch. Bug-AGL: SPEC-4434 Signed-off-by: Zhou Mingying <zhoumy@fujitsu.com> Change-Id: I09f0743496d657d474191365639adc72d33b4a0f
-rw-r--r--recipes-core/dbus/dbus/libdbus-c++/dbus-c++-threading.patch45
1 files changed, 0 insertions, 45 deletions
diff --git a/recipes-core/dbus/dbus/libdbus-c++/dbus-c++-threading.patch b/recipes-core/dbus/dbus/libdbus-c++/dbus-c++-threading.patch
deleted file mode 100644
index c4fafef62..000000000
--- a/recipes-core/dbus/dbus/libdbus-c++/dbus-c++-threading.patch
+++ /dev/null
@@ -1,45 +0,0 @@
---- libdbus-c++-0.9.0/include/dbus-c++/dispatcher.h.threading 2017-02-15 13:40:53.796004263 +0000
-+++ libdbus-c++-0.9.0/include/dbus-c++/dispatcher.h 2017-02-15 13:40:46.907000493 +0000
-@@ -188,6 +188,7 @@
- /* classes for multithreading support
- */
-
-+#if 0
- class DXXAPI Mutex
- {
- public:
-@@ -243,9 +244,11 @@
- typedef bool (*CondVarWaitTimeoutFn)(CondVar *cv, Mutex *mx, int timeout);
- typedef void (*CondVarWakeOneFn)(CondVar *cv);
- typedef void (*CondVarWakeAllFn)(CondVar *cv);
-+#endif
-
- void DXXAPI _init_threading();
-
-+#if 0
- void DXXAPI _init_threading(
- MutexNewFn, MutexFreeFn, MutexLockFn, MutexUnlockFn,
- CondVarNewFn, CondVarFreeFn, CondVarWaitFn, CondVarWaitTimeoutFn, CondVarWakeOneFn, CondVarWakeAllFn
-@@ -312,6 +315,7 @@
- cv->wake_all();
- }
- };
-+#endif
-
- } /* namespace DBus */
-
---- libdbus-c++-0.9.0/src/dispatcher.cpp.threading 2017-02-15 13:48:22.627249868 +0000
-+++ libdbus-c++-0.9.0/src/dispatcher.cpp 2017-02-15 13:48:29.164253445 +0000
-@@ -253,6 +253,7 @@
- #endif//DBUS_HAS_THREADS_INIT_DEFAULT
- }
-
-+#if 0
- void DBus::_init_threading(
- MutexNewFn m1,
- MutexFreeFn m2,
-@@ -318,3 +319,4 @@
- #endif//DBUS_HAS_RECURSIVE_MUTEX
- dbus_threads_init(&functions);
- }
-+#endif
nd-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/*
 * Copyright 2018-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License").
 * You may not use this file except in compliance with the License.
 * A copy of the License is located at
 *
 *     http://aws.amazon.com/apache2.0/
 *
 * or in the "license" file accompanying this file. This file 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.
 */
#ifndef VSHL_AFB_EVENT_H_
#define VSHL_AFB_EVENT_H_

#include <memory>
#include <string>

#include "interfaces/afb/IAFBApi.h"
#include "interfaces/utilities/logging/ILogger.h"

extern "C" {
#include "ctl-plugin.h"
#include <json-c/json.h>
}

using namespace std;

namespace vshlcore {
namespace afb {
/*
 * This class encapsulates AFB Event.
 */
class AFBEventImpl : public vshlcore::common::interfaces::IAFBApi::IAFBEvent {
public:
  static unique_ptr<AFBEventImpl>
  create(shared_ptr<vshlcore::common::interfaces::ILogger> logger, AFB_ApiT api,
         const string &eventName);

  // Destructor
  ~AFBEventImpl();

  /// { @c IAFBEvent implementation
  string getName() const override;
  bool isValid() override;
  int publishEvent(struct json_object *payload) override;
  bool subscribe(vshlcore::common::interfaces::IAFBRequest &request) override;
  bool unsubscribe(vshlcore::common::interfaces::IAFBRequest &request) override;
  /// @c IAFBEvent implementation }

private:
  AFBEventImpl(shared_ptr<vshlcore::common::interfaces::ILogger> logger,
               AFB_ApiT api, const string &eventName);

  // Make the event. This is a lazy make that happens
  // usually during the subscribe stage.
  void makeEventIfNeccessary();

  // Binding API reference
  AFB_ApiT mAfbApi;

  // AFB Event
  afb_event_t mAfbEvent;

  // Event Name
  string mEventName;

  // Logger
  shared_ptr<vshlcore::common::interfaces::ILogger> mLogger;
};

} // namespace afb
} // namespace vshlcore

#endif // VSHL_AFB_EVENT_H_