Selaa lähdekoodia

allow to set thread as invisible

Nicolas Cannasse 3 vuotta sitten
vanhempi
commit
864a165878
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      src/profile.c

+ 3 - 0
src/profile.c

@@ -427,6 +427,9 @@ static void profile_event( int code, vbyte *ptr, int dataLen ) {
 			hl_profile_setup( ptr ? utoi((uchar*)ptr,&end) : 1000);
 			hl_profile_setup( ptr ? utoi((uchar*)ptr,&end) : 1000);
 		}
 		}
 		break;
 		break;
+	case -8:
+		hl_get_thread()->flags |= HL_THREAD_INVISIBLE;
+		break;
 	default:
 	default:
 		if( code < 0 ) return;
 		if( code < 0 ) return;
 		if( data.profiling_pause || (code != 0 && (hl_get_thread()->flags & HL_THREAD_PROFILER_PAUSED)) ) return;
 		if( data.profiling_pause || (code != 0 && (hl_get_thread()->flags & HL_THREAD_PROFILER_PAUSED)) ) return;