First Checked In.

git-svn-id: svn://10.0.0.236/trunk@27130 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
beard%netscape.com 1999-04-12 03:26:18 +00:00
parent 38d6d3f378
commit b0d3e86671
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,19 @@
/*
RunnableMixin.cpp
Provides a mixin nsIRunnable implementation.
by Patrick C. Beard.
*/
#include "RunnableMixin.h"
const InterfaceInfo RunnableMixin::sInterfaces[] = {
{ NS_IRUNNABLE_IID, INTERFACE_OFFSET(RunnableMixin, nsIRunnable) },
};
const UInt32 RunnableMixin::kInterfaceCount = sizeof(sInterfaces) / sizeof(InterfaceInfo);
RunnableMixin::RunnableMixin()
: SupportsMixin(this, sInterfaces, kInterfaceCount)
{
}

View File

@ -0,0 +1,26 @@
/*
RunnableMixin.h
Provides a mixin nsIRunnable implementation.
by Patrick C. Beard.
*/
#pragma once
#include "nsIThreadManager.h"
#include "SupportsMixin.h"
class RunnableMixin : public nsIRunnable, private SupportsMixin {
public:
RunnableMixin();
DECL_SUPPORTS_MIXIN
NS_IMETHOD Run() = 0;
private:
// support for SupportsMixin.
static const InterfaceInfo sInterfaces[];
static const UInt32 kInterfaceCount;
};