Skip to content

Commit

Permalink
[fix] It appears that we were running out of Tls on windows. This cha…
Browse files Browse the repository at this point in the history
…nges the addon system so that a single one is created for the Interceptor functionality rather than one per window.
  • Loading branch information
Jim Carroll committed Dec 31, 2012
1 parent f868fc4 commit c49b8ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions xbmc/interfaces/legacy/Window.cpp
Expand Up @@ -37,6 +37,8 @@ namespace XBMCAddon
{
namespace xbmcgui
{
XbmcThreads::ThreadLocal<ref> InterceptorBase::upcallTls;

/**
* Used in add/remove control. It only locks if it's given a
* non-NULL CCriticalSection. It's given a NULL CCriticalSection
Expand Down
3 changes: 2 additions & 1 deletion xbmc/interfaces/legacy/WindowInterceptor.h
Expand Up @@ -43,7 +43,8 @@ namespace XBMCAddon
{
protected:
AddonClass::Ref<Window> window;
XbmcThreads::ThreadLocal<ref> upcallTls;
// This instance is in Window.cpp
static XbmcThreads::ThreadLocal<ref> upcallTls;

InterceptorBase() : window(NULL) { upcallTls.set(NULL); }

Expand Down

0 comments on commit c49b8ea

Please sign in to comment.