/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * 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 . */ #include #include #include #include #include "lessoperators.hxx" #include "outgoingrequest.hxx" #include "outgoingrequests.hxx" namespace binaryurp { OutgoingRequests::OutgoingRequests() {} OutgoingRequests::~OutgoingRequests() {} void OutgoingRequests::push( rtl::ByteSequence const & tid, OutgoingRequest const & request) { std::scoped_lock g(mutex_); map_[tid].push_back(request); } OutgoingRequest OutgoingRequests::top(rtl::ByteSequence const & tid) { std::scoped_lock g(mutex_); Map::iterator i(map_.find(tid)); if (i == map_.end()) { throw css::uno::RuntimeException( u"URP: reply for unknown TID"_ustr); } assert(!i->second.empty()); return i->second.back(); } void OutgoingRequests::pop(rtl::ByteSequence const & tid) noexcept { std::scoped_lock g(mutex_); Map::iterator i(map_.find(tid)); assert(i != map_.end()); i->second.pop_back(); if (i->second.empty()) { map_.erase(i); } } } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ alue='distro/collabora/cd-5.3'>distro/collabora/cd-5.3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2022-09-14merge sdfilt library into sdNoel Grandin
2022-09-14no need to dynamically ImportCGM symbolNoel Grandin
2022-06-13loplugin:mergeclasses sd::TitledDockingWindow with sd::PaneDockingWindowNoel Grandin
2022-01-24move titledockwin to the one place it's usedCaolán McNamara
2022-01-20WASM --enable-wasm-strip now skips lots of LO codeArmin Le Grand (Allotropia)
2021-12-22Separate core drawinglayer func. into drawinglayercore libraryTomaž Vajngerl
2021-12-20Add graphic size checker for the preferred document DPITomaž Vajngerl
2021-12-10Generally determine Rdb content from gb_*_set_componentfile callsStephan Bergmann
2021-12-01Fix --disable-avmedia for DESKTOP buildJan-Marek Glogowski
2021-03-18Resolves tdf#66470 - Scaling value in statusbarHeiko Tietze
2021-03-04drop newly unused PanelBaseCaolán McNamara
2021-03-04remove intermediate TableDesignPanelCaolán McNamara
2021-03-04remove intermediate CustomAnimationPanelCaolán McNamara
2021-03-04remove intermediate SlideTransitionPanelCaolán McNamara
2020-12-06move bluez_bluetooth_headers use_externals into ENABLE_SDREMOTE_BLUETOOTH caseRene Engelhard
2020-07-26sd: create instances with uno constructorsNoel Grandin
2020-04-06weld custom animation panelCaolán McNamara
2020-01-23SdDocPreviewWin is unusedCaolán McNamara
2019-12-21SlideTransitionBox is unusedCaolán McNamara
2019-10-17gbuild: Treat 'DBUS_GLIB_CFLAGS' as includes, not definesMichael Weghorn
2019-09-23do not require $(SRCDIR) in every gb_Library_set_precompiled_headerLuboš Luňák
2019-06-28tdf#125748 Add context menu entry to execute interactionSamuel Mehrbrodt
2019-06-14loplugin:unusedfields improvementsNoel Grandin
2019-06-05The Bluetooth code doesn't compile with macOS SDK 10.15Tor Lillqvist
2019-05-14SmartArt: regenerate diagram commandGrzegorz Araminowicz
2019-03-22TableDesignBox is unusedCaolán McNamara
2019-03-22CustomAnimationBox is unusedCaolán McNamara
2018-08-08tdf#112343 Change dependency from dbus-glib to dbusArkadiy Illarionov
2018-07-16loplugin:mergeclasses merge ResourceManager into SlideSorterModuleNoel Grandin
2018-06-07sd: import PDFs as images using Pdfium new SdPdfFilterAshod Nakashian
2017-11-15remove now unused ToolPanelModuleCaolán McNamara
2017-07-24SdrGlobalData::aUserMakeObjUserDataHdl is unusedNoel Grandin
2017-07-21migrate to boost::gettextCaolán McNamara
2017-06-22sd: Kill empty sdattr.cxxTakeshi Abe
2017-05-19make string translation loading more uniformCaolán McNamara
2017-05-09drop unused FadeEffectLBCaolán McNamara
2017-04-21gbuild: Remove MSVC 2013 legacy codeDavid Ostrovsky
2016-12-20use new ENABLE_NSS for code which needs nssCaolán McNamara
2016-12-15Try to fix Android and iOS buildTor Lillqvist
2016-12-14sd: Remove empty fileTakeshi Abe
2016-11-21add missing resource depDavid Tardon
2016-10-26tdf#96948 Change color of the area behind Impress slide immediatelyTakeshi Abe
2016-10-04merge sd::FuOutline with sd::FuOutlineTextNoel Grandin
2016-07-11GSoC notebookbar: impress table tabSzymon Kłos
2016-06-28GSoC notebookbar: added animation tab for ImpressSzymon Kłos
2016-06-28notebookbar: added slide transition tabSzymon Kłos
2016-06-18uitest: add initial code for impress main edit windowMarkus Mohrhard