Changes: Ensure requests are not deleted already when accessed
authorMathias Hasselmann <mathias@openismus.com>
Mon, 18 Apr 2011 01:03:06 +0000 (03:03 +0200)
committerMathias Hasselmann <mathias@openismus.com>
Thu, 21 Apr 2011 10:02:30 +0000 (12:02 +0200)
commitf5af1b4f74b3b726a82537f305ceb7f9133d3b89
tree8cece186393031ad673fb73389c184d3f9dbe474
parentca6df63d894f8265561af6c2b118df7086c06d23
Changes: Ensure requests are not deleted already when accessed

RevBy: cocos
Details: This goal is achived by:

  1. Copying all relevant request data during start().
  2. Forcing any access to the original request go though the engine which
     make sure a mutex is hold during each access. Request destruction is
     defered by that very same mutex.
19 files changed:
src/engine/abstractrequest.h
src/engine/baserequest.h
src/engine/contactcopyandremoverequest.cpp
src/engine/contactcopyandremoverequest.h
src/engine/contactfetchrequest.cpp
src/engine/contactfetchrequest.h
src/engine/contactidfetchrequest.cpp
src/engine/contactidfetchrequest.h
src/engine/contactremoverequest.cpp
src/engine/contactsaverequest.cpp
src/engine/contactsaverequest.h
src/engine/contactunmergerequest.cpp
src/engine/contactunmergerequest.h
src/engine/relationshipfetchrequest.cpp
src/engine/relationshipfetchrequest.h
src/engine/relationshipremoverequest.cpp
src/engine/relationshipremoverequest.h
src/engine/relationshipsaverequest.cpp
src/engine/relationshipsaverequest.h