Return true only if thread has been really started

Accortding to doc start() should return true if start operation was
successful. Unfortunately value of this.alive may change between end
of synchronized block and return for example when other thread
executes stop() in parallel.

Change-Id: I4103f0f4c65620c47b4acf2d276f104937b91187
Issue-ID: POLICY-1387
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
1 file changed
tree: 8f060ca8b9a2e3cf78e5609b7e98e9a9826f6bf1
  1. capabilities/
  2. common-logging/
  3. common-parameters/
  4. integrity-audit/
  5. integrity-monitor/
  6. policy-endpoints/
  7. project-configs/
  8. utils/
  9. utils-test/
  10. .gitattributes
  11. .gitignore
  12. .gitreview
  13. INFO.yaml
  14. LICENSE.txt
  15. pom.xml
  16. README.md
  17. version.properties
README.md

Copyright 2018 AT&T Intellectual Property. All rights reserved. This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE Full license text at https://creativecommons.org/licenses/by/4.0/legalcode

This source repository contains ONAP common code, which is shared by 'policy-drools-pdp' and 'policy-engine'. To build it:

  1. using Maven 3
  2. git clone http://gerrit.onap.org/r/oparent and copy oparent/settings.xml to ~/.m2
  3. mvn clean install