diff options
author | Dwight <dwight@10gen.com> | 2011-08-17 16:55:13 -0400 |
---|---|---|
committer | Dwight <dwight@10gen.com> | 2011-08-17 16:55:13 -0400 |
commit | 48977d2abc8ecffaa4c547d427603c7ff24895d3 (patch) | |
tree | d910534e1d623fdc72dbd063ebf4878b8efedd7c /server.h | |
parent | 9ce68d36823c22f641f705928f1c1b22f6206d76 (diff) | |
parent | e4a084bdab0e2a61e81476068ed494e346715d41 (diff) | |
download | mongo-48977d2abc8ecffaa4c547d427603c7ff24895d3.tar.gz |
merge
Diffstat (limited to 'server.h')
-rw-r--r-- | server.h | 50 |
1 files changed, 25 insertions, 25 deletions
@@ -1,25 +1,25 @@ -/** @file server.h
-
- This file contains includes commonly needed in the server files (mongod, mongos, test). It is NOT included in the C++ client.
-
- Over time we should move more here, and more out of pch.h. And get rid of pch.h at some point.
-*/
-
-// todo is there a boost thign for this already?
-
-#pragma once
-
-#include "bson/inline_decls.h"
-
-/* Note: do not clutter code with these -- ONLY use in hot spots / significant loops. */
-
-// branch prediction. indicate we expect to enter the if statement body
-#define IF MONGOIF
-
-// branch prediction. indicate we expect to not enter the if statement body
-#define _IF MONGO_IF
-
-// prefetch data from memory
-#define PREFETCH MONGOPREFETCH
-
-using namespace bson;
+/** @file server.h + + This file contains includes commonly needed in the server files (mongod, mongos, test). It is NOT included in the C++ client. + + Over time we should move more here, and more out of pch.h. And get rid of pch.h at some point. +*/ + +// todo is there a boost thign for this already? + +#pragma once + +#include "bson/inline_decls.h" + +/* Note: do not clutter code with these -- ONLY use in hot spots / significant loops. */ + +// branch prediction. indicate we expect to be true +#define likely MONGO_likely + +// branch prediction. indicate we expect to be false +#define unlikely MONGO_unlikely + +// prefetch data from memory +#define PREFETCH MONGOPREFETCH + +using namespace bson; |