License reservation logic
When you use any Qt or QA product, a license reservation is triggered. The tool can't run until it has a successful license reservation. Learn more about the license reservation logic using Qt Framework and moc as an example.
The Qt build system calls moc which then invokes mocwrapper. Then mocwrapper calls Qt License Service to make the license reservation. Qt License Service checks if the license is available in the license cache. If the local license cache doesn't contain any suitable license, Qt License Service requests a suitable license from the Qt License Server. Once a successful response is received, the license reservation is stored in the license cache (in-memory and file system). The mocwrapper receives the successful response and allows the moc to continue it's original task.
The upcoming moc calls use the locally cached license if the same license reservation is suitable.
If the license reservation lease time is overdue, the reservation isn't used, and Qt License Service is running, Qt License Service releases the reservation back to the license pool which is managed by Qt License Server.
Note: Qt License Server releases the reservation back to the license pool automatically once the reservation lease time is overdue.
See also License types, Overview, How to: Manage licenses, and Set up mocwrapper.
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.