This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var GameSocket = (function () { | |
function GameSocket() { | |
this.wsInited = false; | |
} | |
GameSocket.onDataReceive = function (msg) { | |
var data = JSON.parse(msg.body); | |
var maxHeap = data.m; | |
var user = data.d.u; | |
var usedHeap = data.d.h; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
{ | |
private boolean stop; | |
//called by thread 1 | |
public void run() | |
{ | |
while(!stop) | |
{ | |
//do something |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author Prashant Deva | |
*/ | |
public class ConnectionDataWriter | |
{ | |
static class ConnectorHttpException extends HttpRequest.HttpRequestException | |
{ | |
ConnectorHttpException(IOException cause) | |
{ | |
super(cause); |
NewerOlder