Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Creation of Utils class for optimize the use of functions. #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marcosdeveloper
Copy link

Creation of Utils class for optimize the use of functions in general.

@marcosdeveloper
Copy link
Author

Cla/licenses already are OK and the build error is an error not due my changes.

@patc888
Copy link
Contributor

patc888 commented Apr 24, 2017

I'm not sure how this optimizes getting the current time. Can you explain?

Actually, the method will return corrupted values. The method first stores the current time into a long variable and then return the contents of the long variable. Unfortunately, long assignment isn't atomic so the returned values can be corrupted.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants