mirror of
				https://github.com/pocoproject/poco.git
				synced 2025-10-27 11:06:50 +01:00 
			
		
		
		
	trunk/branch integration: Process::terminationEvent()
This commit is contained in:
		| @@ -205,11 +205,17 @@ void ProcessImpl::killImpl(PIDImpl pid) | ||||
|  | ||||
| void ProcessImpl::requestTerminationImpl(PIDImpl pid) | ||||
| { | ||||
| 	std::string evName("POCOTRM"); | ||||
| 	evName.append(NumberFormatter::formatHex(pid, 8)); | ||||
| 	NamedEvent ev(evName); | ||||
| 	NamedEvent ev(terminationEventName(pid)); | ||||
| 	ev.set(); | ||||
| } | ||||
|  | ||||
|  | ||||
| std::string ProcessImpl::terminationEventName(PIDImpl pid) | ||||
| { | ||||
| 	std::string evName("POCOTRM"); | ||||
| 	NumberFormatter::appendHex(evName, pid, 8); | ||||
| 	return evName; | ||||
| } | ||||
|  | ||||
|  | ||||
| } // namespace Poco | ||||
|   | ||||
| @@ -209,11 +209,17 @@ void ProcessImpl::killImpl(PIDImpl pid) | ||||
|  | ||||
| void ProcessImpl::requestTerminationImpl(PIDImpl pid) | ||||
| { | ||||
| 	std::string evName("POCOTRM"); | ||||
| 	evName.append(NumberFormatter::formatHex(pid, 8)); | ||||
| 	NamedEvent ev(evName); | ||||
| 	NamedEvent ev(terminationEventName(pid)); | ||||
| 	ev.set(); | ||||
| } | ||||
|  | ||||
|  | ||||
| std::string ProcessImpl::terminationEventName(PIDImpl pid) | ||||
| { | ||||
| 	std::string evName("POCOTRM"); | ||||
| 	NumberFormatter::appendHex(evName, pid, 8); | ||||
| 	return evName; | ||||
| } | ||||
|  | ||||
|  | ||||
| } // namespace Poco | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Marian Krivos
					Marian Krivos