LCOV - code coverage report
Current view: top level - libreoffice/stoc/source/registry_tdprovider - td.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 8 15 53.3 %
Date: 2012-12-27 Functions: 1 5 20.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : 
      21             : #include "osl/doublecheckedlocking.h"
      22             : #include "base.hxx"
      23             : 
      24             : namespace stoc_rdbtdp
      25             : {
      26             : 
      27             : //------------------------------------------------------------------------------
      28       37873 : ::osl::Mutex & getMutex()
      29             : {
      30             :     static ::osl::Mutex * s_pmutex = 0;
      31       37873 :     if (s_pmutex == 0)
      32             :     {
      33          33 :         ::osl::MutexGuard guard( ::osl::Mutex::getGlobalMutex() );
      34          33 :         if (s_pmutex == 0)
      35             :         {
      36          33 :             static ::osl::Mutex s_mutex;
      37             :             OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
      38          33 :             s_pmutex = &s_mutex;
      39          33 :         }
      40             :     }
      41             :     else
      42             :     {
      43             :         OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
      44             :     }
      45       37873 :     return *s_pmutex;
      46             : }
      47             : 
      48             : 
      49           0 : TypeDescriptionImpl::~TypeDescriptionImpl()
      50             : {
      51           0 :     g_moduleCount.modCnt.release( &g_moduleCount.modCnt );
      52           0 : }
      53             : 
      54             : // XTypeDescription
      55             : //__________________________________________________________________________________________________
      56           0 : TypeClass TypeDescriptionImpl::getTypeClass()
      57             :     throw(::com::sun::star::uno::RuntimeException)
      58             : {
      59           0 :     return _eTypeClass;
      60             : }
      61             : //__________________________________________________________________________________________________
      62           0 : OUString TypeDescriptionImpl::getName()
      63             :     throw(::com::sun::star::uno::RuntimeException)
      64             : {
      65           0 :     return _aName;
      66             : }
      67             : 
      68             : }
      69             : 
      70             : 
      71             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10