diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-11-29 09:57:20 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-11-29 09:57:20 +0100 |
commit | c9e876553534f55da53f30b846a9ec61ad8e0275 (patch) | |
tree | c988177477857869979ad1acc611cf9456426d69 /lib | |
parent | 6a21ca020d59a4ccae4452773695aae23017f19b (diff) |
Revert "Having a slightly better atomic support in the domain ids."
This reverts commit 6a21ca020d59a4ccae4452773695aae23017f19b.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/LuaHttp.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/LuaHttp.cc b/lib/LuaHttp.cc index 7d4c091..a88c77c 100644 --- a/lib/LuaHttp.cc +++ b/lib/LuaHttp.cc @@ -25,7 +25,6 @@ #include "Base85.h" #include "HashFunction.h" #include "RandISAAC.h" -#include "Atomic.h" class LuaDomain : public Domain { public: @@ -436,8 +435,8 @@ int sLua_HttpResponse::HttpResponse_proceed_statics(Lua * L, int n, int caller) } LuaDomain::LuaDomain(Lua * _L, String r) : Domain(r), L(_L->Father()) { - id = Atomic::Increment(&max_id); - + id = max_id++; /***FIXME***/ + L->push(DOMAIN_REGISTRY); L->gettable(LUA_REGISTRYINDEX); L->push((lua_Number) id); |