libzypp 17.38.1
ShutdownLock_p.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12
13#ifndef ZYPP_SHUTDOWNLOCK_P_H_INCLUDED
14#define ZYPP_SHUTDOWNLOCK_P_H_INCLUDED
15
16#include <string>
17
18#include <zypp-core/Globals.h>
20
21namespace zypp
22{
23
25
36{
37protected:
38 ShutdownLock( const std::string &who, const std::string &reason );
40
41private:
43};
44
46{
47public:
48 ShutdownLockCommit( const std::string &who )
49 : ShutdownLock( who, "Zypp commit running." )
50 {}
51};
52
53} // namespace
54#endif
Provides API related macros.
ExternalProgram extended to change the progress group ID after forking.
ShutdownLockCommit(const std::string &who)
shared_ptr< ExternalProgramWithSeperatePgid > _prog
ShutdownLock(const std::string &who, const std::string &reason)