summaryrefslogtreecommitdiffstats
path: root/common/resourcecontrol.cpp
Commit message (Collapse)AuthorAge
* Avoid the socket probing and move the shutdown logic intoChristian Mollekopf2018-07-25
| | | | | | | | | | | | | | | resourceaccess. The problem was (as excercised by the last test in resourcecontroltest), that in this scenario we would: * trigger a synchronization that starts the resource, and then goes into a loop trying to connecting (KAsync::wait -> singleshot timer) * trigger a shutdown that would probe for the socket, not find it, and thus do nothing. * exit the testfunction, which somehow stops qtimer processing, meaning we are stuck in KAsync::wait. For now this is fixed by simply not probing for the socket.
* FixupChristian Mollekopf2018-07-25
|
* Same fix as last commit.Christian Mollekopf2018-07-25
|
* One central place to generate uidsChristian Mollekopf2018-01-30
|
* Ensure we get an appropriate exit code when a resource crashes.Christian Mollekopf2017-10-31
|
* No more SINK_DEBUG_AREAChristian Mollekopf2017-05-12
|
* Debug outputChristian Mollekopf2017-03-14
|
* Actually flush the replay queueChristian Mollekopf2017-01-18
|
* syncThen is no longer necessaryChristian Mollekopf2017-01-12
|
* Let the preprocessor repeat the types.Christian Mollekopf2016-12-08
|
* Avoid race conditions if the notification comes back too earlyChristian Mollekopf2016-11-28
|
* Added the flush command.Christian Mollekopf2016-11-25
| | | | | | | Instead of trying to actually flush queues, we send a special command through the same queues as the other commands and can thus guarantee that the respective commands have been processed without blocking anything.
* CleanupChristian Mollekopf2016-11-14
|
* A resource shutdown is only complete once we receive the notification.Christian Mollekopf2016-10-07
| | | | | Otherwise the tests might try to start a new resource before the last one even shut down.
* Ported to the kasync revampChristian Mollekopf2016-09-15
|
* A new debug system.Christian Mollekopf2016-07-07
| | | | | | | | | | | | | | | Instead of a single #define as debug area the new system allows for an identifier for each debug message with the structure component.area. The component is a dot separated identifier of the runtime component, such as the process or the plugin. The area is the code component, and can be as such defined at compiletime. The idea of this system is that it becomes possible to i.e. look at the output of all messages in the query subsystem of a specific resource (something that happens in the client process, but in the resource-specific subcomponent). The new macros are supposed to be less likely to clash with other names, hence the new names.
* Avoid reusing a resourceaccess instance that is connected to shuttingChristian Mollekopf2016-05-29
| | | | down resource.
* Pass in the inspection typeChristian Mollekopf2016-05-24
|
* Don't encode the resource type into the identifierChristian Mollekopf2016-04-17
|
* Fromatted the whole codebase with clang-format.Christian Mollekopf2016-03-03
| | | | clang-format -i */**{.cpp,.h}
* Reuse ResourceAccess where we canChristian Mollekopf2016-02-13
|
* Adapt to latest kasync versionChristian Mollekopf2016-02-10
|
* Moved Notifier and ResourceAccess to separate files.Christian Mollekopf2016-02-10