- Timestamp:
- May 16, 2014, 9:51:55 AM (11 years ago)
- Location:
- smplayer/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk
- Property svn:mergeinfo changed
/smplayer/vendor/current merged: 163
- Property svn:mergeinfo changed
-
smplayer/trunk/src/qtsingleapplication/qtlockedfile_win.cpp
r128 r165 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 ** All rights reserved. 5 ** 6 ** Contact: Nokia Corporation (qt-info@nokia.com) 7 ** 8 ** This file is part of a Qt Solutions component. 9 ** 3 ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). 4 ** Contact: http://www.qt-project.org/legal 5 ** 6 ** This file is part of the Qt Solutions component. 7 ** 8 ** $QT_BEGIN_LICENSE:BSD$ 10 9 ** You may use this file under the terms of the BSD license as follows: 11 10 ** … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names 21 ** of its contributors may be used to endorse or promote products derived 22 ** from this software without specific prior written permission. 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 37 36 ** 37 ** $QT_END_LICENSE$ 38 ** 38 39 ****************************************************************************/ 39 40 40 41 #include "qtlockedfile.h" 41 42 #include <qt_windows.h> 42 #include <Q tCore/QFileInfo>43 #include <QFileInfo> 43 44 44 45 #define MUTEX_PREFIX "QtLockedFile mutex " 45 46 // Maximum number of concurrent read locks. Must not be greater than MAXIMUM_WAIT_OBJECTS 46 47 #define MAX_READERS MAXIMUM_WAIT_OBJECTS 48 49 #if QT_VERSION >= 0x050000 50 #define QT_WA(unicode, ansi) unicode 51 #endif 47 52 48 53 Qt::HANDLE QtLockedFile::getMutexHandle(int idx, bool doCreate)
Note:
See TracChangeset
for help on using the changeset viewer.