diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-13 19:18:52 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-13 19:18:52 +0000 |
commit | 47a961c13f61cdbd00a7020a5a8173586a8ed892 (patch) | |
tree | a89ea8f0c81f5c74cb5bcaf852e4e83ab21fbc75 /ppapi/examples/scripting/post_message.cc | |
parent | 8367f7b3aab8365ed5e696e4720a2a416d956d0a (diff) | |
download | chromium_src-47a961c13f61cdbd00a7020a5a8173586a8ed892.zip chromium_src-47a961c13f61cdbd00a7020a5a8173586a8ed892.tar.gz chromium_src-47a961c13f61cdbd00a7020a5a8173586a8ed892.tar.bz2 |
Add support for threadsafe completion callback factory.
This also makes the default be threadsafe. The old factory wasn't threadsafe even to the extent claimed in the header which was causing hangs in plugins
BUG=136284
Review URL: https://chromiumcodereview.appspot.com/10696157
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146611 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/examples/scripting/post_message.cc')
-rw-r--r-- | ppapi/examples/scripting/post_message.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ppapi/examples/scripting/post_message.cc b/ppapi/examples/scripting/post_message.cc index 24f7927..636a7a8 100644 --- a/ppapi/examples/scripting/post_message.cc +++ b/ppapi/examples/scripting/post_message.cc @@ -8,6 +8,12 @@ #include "ppapi/cpp/module.h" #include "ppapi/cpp/var.h" +// When compiling natively on Windows, PostMessage can be #define-d to +// something else. +#ifdef PostMessage +#undef PostMessage +#endif + // This is a simple C++ Pepper plugin that demonstrates HandleMessage and // PostMessage. |