*not part of the buld*
fix for 84801 git-svn-id: svn://10.0.0.236/trunk@99781 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -446,8 +446,7 @@ UnregisterJavaLoader(nsIComponentManager *aCompMgr, nsIFile *aPath,
|
||||
// only unregister if we're the current JS component loader
|
||||
if (!strcmp(javaLoader, BC_JAVACOMPONENTLOADER_ContractID)) {
|
||||
return catman->DeleteCategoryEntry("component-loader",
|
||||
javaComponentTypeName, PR_TRUE,
|
||||
getter_Copies(javaLoader));
|
||||
javaComponentTypeName, PR_TRUE);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@@ -170,7 +170,7 @@ void test() {
|
||||
nsresult r;
|
||||
bcIJavaSample *test;
|
||||
bcIJavaSample *a = new bcJavaSample();
|
||||
#if 0
|
||||
#if 1
|
||||
r = nsComponentManager::CreateInstance("bcJavaSample",
|
||||
nsnull,
|
||||
NS_GET_IID(bcIJavaSample),
|
||||
@@ -183,7 +183,7 @@ void test() {
|
||||
//sigsend(P_PID, getpid(),SIGINT);
|
||||
//test->Test1(2000);
|
||||
|
||||
#if 1
|
||||
#if 0
|
||||
{
|
||||
PRThread *thr = PR_CreateThread( PR_USER_THREAD,
|
||||
thread_start,
|
||||
@@ -208,12 +208,14 @@ void test() {
|
||||
}
|
||||
#endif
|
||||
//thread_start(test);
|
||||
#if 0
|
||||
if (javaSample == NULL) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
test = javaSample;
|
||||
#endif
|
||||
test->Test1((int)PR_GetCurrentThread());
|
||||
return;
|
||||
bcIJavaSample *test1;
|
||||
if (NS_FAILED(r)) {
|
||||
printf("failed to get component. try to restart test\n");
|
||||
|
||||
Reference in New Issue
Block a user