summaryrefslogtreecommitdiff
path: root/runtimes/libs/xray/mux/src/mux.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtimes/libs/xray/mux/src/mux.cc')
-rw-r--r--runtimes/libs/xray/mux/src/mux.cc34
1 files changed, 34 insertions, 0 deletions
diff --git a/runtimes/libs/xray/mux/src/mux.cc b/runtimes/libs/xray/mux/src/mux.cc
new file mode 100644
index 000000000..a224294dd
--- /dev/null
+++ b/runtimes/libs/xray/mux/src/mux.cc
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd. 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.
+ * 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.
+ */
+
+#include "xray/mux.h"
+
+#define XRAY_TRACER
+#include <xray/pipe.h>
+#undef XRAY_TRACER
+
+namespace xray
+{
+
+mux &mux::get(void)
+{
+ static mux m;
+ return m;
+}
+
+void pipe::post(const event *e) { mux::get().notify(e); }
+
+} // namespace xray