~ubuntu-branches/ubuntu/quantal/virtualbox/quantal

« back to all changes in this revision

Viewing changes to src/VBox/Additions/common/crOpenGL/pack/packspu_misc.c

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2012-04-05 12:41:55 UTC
  • mfrom: (3.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20120405124155-i7b39tv5ddwhubbe
Tags: 4.1.12-dfsg-2
* Upstream has replaced the 4.1.12 tarball with a new one that fixes a
  crash when creating host only interfaces. (Closes: #667460)
  - Add 36-tarball-respin.patch which contains the diff between the old
    and the new tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
478
478
    crUnlockMutex(&_PackMutex);
479
479
}
480
480
 
481
 
void PACKSPU_APIENTRY packspu_VBoxPackAttachThread()
 
481
void PACKSPU_APIENTRY packspu_VBoxAttachThread()
482
482
{
483
483
#if 0
484
484
    int i;
494
494
#endif
495
495
 
496
496
    crSetTSD(&_PackTSD, NULL);
 
497
 
 
498
    crStateVBoxAttachThread();
497
499
}
498
500
 
499
 
void PACKSPU_APIENTRY packspu_VBoxPackDetachThread()
 
501
void PACKSPU_APIENTRY packspu_VBoxDetachThread()
500
502
{
501
503
    int i;
502
504
    GET_THREAD(thread);
557
559
 
558
560
        crUnlockMutex(&_PackMutex);
559
561
    }
 
562
 
 
563
    crStateVBoxDetachThread();
560
564
}
561
565
 
562
566
#ifdef WINDOWS
582
586
        }
583
587
 
584
588
        case DLL_THREAD_ATTACH:
585
 
        {
586
 
            packspu_VBoxPackAttachThread();
587
 
            crStateOnThreadAttachDetach(GL_TRUE);
588
 
            break;
589
 
        }
590
 
 
591
589
        case DLL_THREAD_DETACH:
592
 
        {
593
 
            packspu_VBoxPackDetachThread();
594
 
            crStateOnThreadAttachDetach(GL_FALSE);
595
 
            break;
596
 
        }
597
 
 
598
590
        default:
599
591
            break;
600
592
    }