Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove the WebKit2 BinarySemaphore class
https://bugs.webkit.org/show_bug.cgi?id=115458

Reviewed by Benjamin Poulain.

Source/WebKit2:

Remove the WK2 specific BinarySemaphore class and use the one from WTF.

* Platform/CoreIPC/BinarySemaphore.cpp: Removed.
* Platform/CoreIPC/BinarySemaphore.h: Removed.
* Platform/CoreIPC/Connection.cpp:
* Platform/CoreIPC/Connection.h:
* WebKit2.xcodeproj/project.pbxproj:

Source/WTF:

* wtf/Forward.h:
Add BinarySemaphore forward declaration.

* wtf/threads/BinarySemaphore.h:
Add WTF_EXPORT_PRIVATE to declarations.

Canonical link: https://commits.webkit.org/133898@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@149416 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
Anders Carlsson committed May 1, 2013
1 parent 981cd2b commit ef1c579
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 141 deletions.
13 changes: 13 additions & 0 deletions Source/WTF/ChangeLog
@@ -1,3 +1,16 @@
2013-04-30 Anders Carlsson <andersca@apple.com>

Remove the WebKit2 BinarySemaphore class
https://bugs.webkit.org/show_bug.cgi?id=115458

Reviewed by Benjamin Poulain.

* wtf/Forward.h:
Add BinarySemaphore forward declaration.

* wtf/threads/BinarySemaphore.h:
Add WTF_EXPORT_PRIVATE to declarations.

2013-04-30 Commit Queue <rniwa@webkit.org>

Unreviewed, rolling out r149408.
Expand Down
2 changes: 2 additions & 0 deletions Source/WTF/wtf/Forward.h
Expand Up @@ -39,6 +39,7 @@ namespace WTF {
class ArrayBufferView;
class AtomicString;
class AtomicStringImpl;
class BinarySemaphore;
class CString;
class Decoder;
class Encoder;
Expand Down Expand Up @@ -72,6 +73,7 @@ using WTF::ArrayBuffer;
using WTF::ArrayBufferView;
using WTF::AtomicString;
using WTF::AtomicStringImpl;
using WTF::BinarySemaphore;
using WTF::CString;
using WTF::Encoder;
using WTF::Decoder;
Expand Down
8 changes: 4 additions & 4 deletions Source/WTF/wtf/threads/BinarySemaphore.h
Expand Up @@ -35,11 +35,11 @@ class BinarySemaphore {
WTF_MAKE_NONCOPYABLE(BinarySemaphore);

public:
BinarySemaphore();
~BinarySemaphore();
WTF_EXPORT_PRIVATE BinarySemaphore();
WTF_EXPORT_PRIVATE ~BinarySemaphore();

void signal();
bool wait(double absoluteTime);
WTF_EXPORT_PRIVATE void signal();
WTF_EXPORT_PRIVATE bool wait(double absoluteTime);

#if PLATFORM(WIN)
HANDLE event() const { return m_event; }
Expand Down
15 changes: 15 additions & 0 deletions Source/WebKit2/ChangeLog
@@ -1,3 +1,18 @@
2013-04-30 Anders Carlsson <andersca@apple.com>

Remove the WebKit2 BinarySemaphore class
https://bugs.webkit.org/show_bug.cgi?id=115458

Reviewed by Benjamin Poulain.

Remove the WK2 specific BinarySemaphore class and use the one from WTF.

* Platform/CoreIPC/BinarySemaphore.cpp: Removed.
* Platform/CoreIPC/BinarySemaphore.h: Removed.
* Platform/CoreIPC/Connection.cpp:
* Platform/CoreIPC/Connection.h:
* WebKit2.xcodeproj/project.pbxproj:

2013-04-30 Alexey Proskuryakov <ap@apple.com>

<rdar://problem/13757475> WebProcess deny ipc-posix-shm-read-data CFPBS:A2:
Expand Down
64 changes: 0 additions & 64 deletions Source/WebKit2/Platform/CoreIPC/BinarySemaphore.cpp

This file was deleted.

62 changes: 0 additions & 62 deletions Source/WebKit2/Platform/CoreIPC/BinarySemaphore.h

This file was deleted.

2 changes: 1 addition & 1 deletion Source/WebKit2/Platform/CoreIPC/Connection.cpp
Expand Up @@ -26,11 +26,11 @@
#include "config.h"
#include "Connection.h"

#include "BinarySemaphore.h"
#include <WebCore/RunLoop.h>
#include <wtf/CurrentTime.h>
#include <wtf/HashSet.h>
#include <wtf/text/WTFString.h>
#include <wtf/threads/BinarySemaphore.h>

using namespace WebCore;

Expand Down
3 changes: 1 addition & 2 deletions Source/WebKit2/Platform/CoreIPC/Connection.h
Expand Up @@ -34,6 +34,7 @@
#include "MessageReceiver.h"
#include "WorkQueue.h"
#include <wtf/Deque.h>
#include <wtf/Forward.h>
#include <wtf/PassRefPtr.h>
#include <wtf/OwnPtr.h>
#include <wtf/Threading.h>
Expand All @@ -60,8 +61,6 @@ class RunLoop;

namespace CoreIPC {

class BinarySemaphore;

enum MessageSendFlags {
// Whether this message should be dispatched when waiting for a sync reply.
// This is the default for synchronous messages.
Expand Down
8 changes: 0 additions & 8 deletions Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
Expand Up @@ -247,8 +247,6 @@
1AB7D78D1288CD9A00CFD08C /* WKDownload.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AB7D78B1288CD9A00CFD08C /* WKDownload.h */; settings = {ATTRIBUTES = (Private, ); }; };
1AB7D78E1288CD9A00CFD08C /* WKDownload.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AB7D78C1288CD9A00CFD08C /* WKDownload.cpp */; };
1AC25FC212A48F6000BD2671 /* PluginProcessShim.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1AC25F8A12A48E0300BD2671 /* PluginProcessShim.mm */; };
1AC41AC71263C88300054E94 /* BinarySemaphore.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AC41AC51263C88300054E94 /* BinarySemaphore.h */; };
1AC41AC81263C88300054E94 /* BinarySemaphore.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC41AC61263C88300054E94 /* BinarySemaphore.cpp */; };
1AC4C82916B876A90069DCCD /* MessageFlags.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AC4C82816B876A90069DCCD /* MessageFlags.h */; };
1AC86FF3130B46D3002C1257 /* WKPluginSiteDataManager.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC86FF1130B46D3002C1257 /* WKPluginSiteDataManager.cpp */; };
1AC86FF4130B46D3002C1257 /* WKPluginSiteDataManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AC86FF2130B46D3002C1257 /* WKPluginSiteDataManager.h */; settings = {ATTRIBUTES = (Private, ); }; };
Expand Down Expand Up @@ -1670,8 +1668,6 @@
1AC25F8912A48E0300BD2671 /* PluginProcessShim.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PluginProcessShim.h; sourceTree = "<group>"; };
1AC25F8A12A48E0300BD2671 /* PluginProcessShim.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = PluginProcessShim.mm; sourceTree = "<group>"; };
1AC25FB012A48EA700BD2671 /* PluginProcessShim.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = PluginProcessShim.dylib; sourceTree = BUILT_PRODUCTS_DIR; };
1AC41AC51263C88300054E94 /* BinarySemaphore.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BinarySemaphore.h; sourceTree = "<group>"; };
1AC41AC61263C88300054E94 /* BinarySemaphore.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BinarySemaphore.cpp; sourceTree = "<group>"; };
1AC4C82816B876A90069DCCD /* MessageFlags.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MessageFlags.h; sourceTree = "<group>"; };
1AC86FF1130B46D3002C1257 /* WKPluginSiteDataManager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WKPluginSiteDataManager.cpp; sourceTree = "<group>"; };
1AC86FF2130B46D3002C1257 /* WKPluginSiteDataManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKPluginSiteDataManager.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -3390,8 +3386,6 @@
BC032DA110F437D10058C15A /* Arguments.h */,
BCEE966A112FAF57006BCC24 /* Attachment.cpp */,
BCEE966B112FAF57006BCC24 /* Attachment.h */,
1AC41AC61263C88300054E94 /* BinarySemaphore.cpp */,
1AC41AC51263C88300054E94 /* BinarySemaphore.h */,
BC032DA210F437D10058C15A /* Connection.cpp */,
BC032DA310F437D10058C15A /* Connection.h */,
1A8EFDFD1253CB6E00F7067F /* DataReference.cpp */,
Expand Down Expand Up @@ -5247,7 +5241,6 @@
518E8EF916B2091C00E91429 /* AuthenticationManager.h in Headers */,
512F58A312A883AD00629530 /* AuthenticationManagerMessages.h in Headers */,
1A64256812DE42EC00CAAE2C /* BackingStore.h in Headers */,
1AC41AC71263C88300054E94 /* BinarySemaphore.h in Headers */,
4F601432155C5AA2001FBDE0 /* BlockingResponseMap.h in Headers */,
BC3065FA1259344E00E71278 /* CacheModel.h in Headers */,
1AA2E51D12E4C05E00BC4966 /* CGUtilities.h in Headers */,
Expand Down Expand Up @@ -6483,7 +6476,6 @@
512F58A212A883AD00629530 /* AuthenticationManagerMessageReceiver.cpp in Sources */,
1A64256912DE42EC00CAAE2C /* BackingStore.cpp in Sources */,
1A64292D12DE5F9800CAAE2C /* BackingStoreMac.mm in Sources */,
1AC41AC81263C88300054E94 /* BinarySemaphore.cpp in Sources */,
BCF18638167D071E00A1A85A /* CacheModel.cpp in Sources */,
1AA2E51E12E4C05E00BC4966 /* CGUtilities.cpp in Sources */,
1A2D957012848564001EB962 /* ChildProcess.cpp in Sources */,
Expand Down

0 comments on commit ef1c579

Please sign in to comment.