summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/expression_context.h
diff options
context:
space:
mode:
authorU-tellus\cwestin <cwestin@10gen.com>2012-02-15 16:33:17 -0800
committerU-tellus\cwestin <cwestin@10gen.com>2012-02-15 19:14:06 -0800
commit7ada09610e73211856e4ca906eb06d54d2354641 (patch)
tree1f141e35b5f40c4d84d1ef52ccb9b687769f935f /src/mongo/db/pipeline/expression_context.h
parentc94d2c910a2cd185c804abffe4bdbdfa28cc598e (diff)
downloadmongo-7ada09610e73211856e4ca906eb06d54d2354641.tar.gz
SERVER-4844
Diffstat (limited to 'src/mongo/db/pipeline/expression_context.h')
-rwxr-xr-xsrc/mongo/db/pipeline/expression_context.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/expression_context.h b/src/mongo/db/pipeline/expression_context.h
index 0f4de1461ae..893826af222 100755
--- a/src/mongo/db/pipeline/expression_context.h
+++ b/src/mongo/db/pipeline/expression_context.h
@@ -22,6 +22,8 @@
namespace mongo {
+ class InterruptStatus;
+
class ExpressionContext :
public IntrusiveCounterUnsigned {
public:
@@ -40,14 +42,15 @@ namespace mongo {
*/
void checkForInterrupt();
- static ExpressionContext *create();
+ static ExpressionContext *create(InterruptStatus *pStatus);
private:
- ExpressionContext();
+ ExpressionContext(InterruptStatus *pStatus);
bool inShard;
bool inRouter;
unsigned intCheckCounter; // interrupt check counter
+ InterruptStatus *const pStatus;
};
}