[ library(flexlm) | Reference Manual | Alphabetic Index ]

licence_held(+Feature)

Check whether we already have a licence for a particular feature
Feature
String or atom

Description

This checks whether a licence for the given feature has already been checked out by this process, i.e. whether licence_checkout/6 has been called successfully earlier.

Fail Conditions

Licence hasn't been checked out

Examples

	...,
    	( sepia_kernel:licence_held(swapper) ->
	    true
	;
	    sepia_kernel:licence_checkout(swapper, ..., ..., ..., ..., ...)
	    ...
	),
	...
    

See Also

licence_checkout / 6, licence_heartbeat / 4, licence_checkin / 1