ivandasch commented on a change in pull request #8118:
URL: https://github.com/apache/ignite/pull/8118#discussion_r470440084



##########
File path: 
modules/platforms/cpp/thin-client/src/impl/transactions/transactions_impl.h
##########
@@ -0,0 +1,276 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+
+#ifndef TRANSACTIONS_IMPL_H
+#define TRANSACTIONS_IMPL_H
+
+#include "impl/data_router.h"
+#include "ignite/thin/transactions/transaction_consts.h"
+
+using namespace ignite::thin::transactions;
+using namespace ignite::common::concurrent;
+
+namespace ignite
+{
+    namespace impl
+    {
+        namespace thin
+        {
+            namespace transactions
+            {
+                /* Forward declaration. */
+                class TransactionsImpl;
+
+                /* Forward declaration. */
+                class TransactionImpl;
+
+                typedef SharedPointer<TransactionsImpl> SP_TransactionsImpl;
+                typedef SharedPointer<TransactionImpl> SP_TransactionImpl;
+
+                /**
+                 * Ignite transactions implementation.
+                 *
+                 * This is an entry point for Thin C++ Ignite transactions.
+                 */
+                class TransactionImpl
+                {
+                    typedef ThreadLocalInstance<int32_t> TL_TXID;

Review comment:
       I don't understand, why not simply store pointer to Transaction instead 
of id? This can eliminate usage of syncrhonized map at all




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to