Board.KolibriOS.org
http://board.kolibrios.org/

exitprocess or getactivethreads
http://board.kolibrios.org/viewtopic.php?f=2&t=2988
Page 1 of 1

Author:  Colin [ Fri Jan 16, 2015 10:54 pm ]
Post subject:  exitprocess or getactivethreads

Hello there,

Current I am using interruption -1 to end current thread, but I am searching for an option of ending all threads for active process. Is this already possible?

If not, is there a function to return a list of all threads for current process?

Author:  hidnplayr [ Sat Jan 17, 2015 3:02 pm ]
Post subject:  Re: exitprocess or getactivethreads

Unfortunately, last time I checked, the kernel did not know the difference between a thread and a process yet.

Author:  Colin [ Sat Jan 17, 2015 3:15 pm ]
Post subject:  Re: exitprocess or getactivethreads

Hi there,

Thanks for the reply. Do the processes have a "parent" property? Which would make it possible to iterate through the processes and end all with parent x.

If all else fails, I guess I will need to write some kind of thread management utility with a linkedlist of thread/process ids.

Page 1 of 1 All times are UTC+03:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/