Make reference counting for QAxClientSite multi-processor safe
authorJian Liang <jianliang79@gmail.com>
Wed, 29 Feb 2012 01:23:47 +0000 (09:23 +0800)
committerQt by Nokia <qt-info@nokia.com>
Wed, 29 Feb 2012 08:20:03 +0000 (09:20 +0100)
commit78faf96e5fd4bf6c1f37aa7f89229fa9bf3dd70d
tree9c2b2e57a77d53c4dbafbfacb5da2d6c0469619a
parent0ba850c7a2dbccb8dd6aa1664679bda6cce95065
Make reference counting for QAxClientSite multi-processor safe

It is not safe to use ++long/--long to implement reference counting for
COM object in multi-processor environment. We use InterlockedIncrement()
and InterlockedDecrement() to implement reference counting.

Change-Id: Ibfc5f3456cbaefb9267feb378483c5c60c305f00
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
src/activeqt/container/qaxwidget.cpp