Tom Stellard 8f3b876ee6 ocl: Change static variable order in cl_context.cpp to avoid crashes during destruction
ContextImpl::currentContext contains a reference to one of the
DeviceInfoImpl objects from:

static std::vector<DeviceInfoImpl> global_devices;

ContextImpl::currentContext is destroyed in the destructor
for the statically defined object __module, and relies on its
DeviceInfoImpl reference to query some hardware features while
being destroyed.

This means that we need to ensure that the global_devices vector is
destroyed affter __module, otherwise ContextImpl::currentContext's
DeviceInfoImpl reference will no longer be valid when __module is
destroyed.

Since these variables are all confined to a single compilation unit,
they will be destruct from bottom to top, so we need to make sure
that __module is the bottom definition so it can be destroyed first.
2014-10-14 20:54:13 -04:00
..
2014-07-11 09:22:55 +02:00
2014-10-12 12:45:20 +02:00
2014-08-28 14:47:26 +04:00
2014-10-08 19:52:35 +05:30
2014-09-30 12:05:46 +04:00
2014-06-26 16:29:45 +02:00
2014-10-02 13:40:30 +04:00
2014-03-02 21:04:17 +04:00
2014-09-30 11:53:46 +02:00
2014-04-08 16:10:32 +03:00
2014-06-24 11:52:56 +01:00