Closed alesky78 closed 7 years ago
Let me think about this one. Although in general it's good to keep this kind of logic in one place, as-is this is very stable code which hasn't needed changes for years.
ok no problme...
the idea is also to remove the yeld() calls that is SO and JVM dependent i will opena ticket wiht this piece of code...
i want to delete this branch from my repo.....
Hi Jeremy
this pull request is just to propose a solution for the sync of the InboundMessageQueue and open a discussion
you can see the commit https://github.com/jdmonin/JSettlers2/commit/e1d2c612601e52e0a312c57f12b1958554940f87
the idea is to manage the syncronization only in the two method and mantain the sync logic simpte to understand
in this mode the Treater remain in wait mode unitl a new message is inserted in the queue...