~ubuntu-branches/ubuntu/oneiric/icedtea-web/oneiric

« back to all changes in this revision

Viewing changes to plugin/icedteanp/java/sun/applet/PluginMessageHandlerWorker.java

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2011-04-06 13:10:44 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20110406131044-6jky8obchc43cf02
Tags: 1.1~20110406-0ubuntu1
Fix typo in icedtea-netx postinst to install the javaws alternative.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        this.isPriorityWorker = isPriorityWorker;
57
57
        this.consumer = consumer;
58
58
 
59
 
        PluginDebug.debug("Worker " + this.id + " (priority=" + isPriorityWorker + ") created.");
 
59
        PluginDebug.debug("Worker ", this.id, " (priority=", isPriorityWorker, ") created.");
60
60
    }
61
61
 
62
62
    public void setmessage(String message) {
68
68
 
69
69
            if (message != null) {
70
70
 
71
 
                PluginDebug.debug("Consumer (priority=" + isPriorityWorker + ") thread " + id + " consuming " + message);
 
71
                PluginDebug.debug("Consumer (priority=", isPriorityWorker, ") thread ", id, " consuming ", message);
72
72
 
73
73
                // ideally, whoever returns this object should mark it
74
74
                // busy first, but just in case..
86
86
 
87
87
                this.message = null;
88
88
 
89
 
                PluginDebug.debug("Consumption (priority=" + isPriorityWorker + ") completed by consumer thread " + id);
 
89
                PluginDebug.debug("Consumption (priority=", isPriorityWorker, ") completed by consumer thread ", id);
90
90
 
91
91
                // mark ourselves free again
92
92
                free();
96
96
                // Sleep when there is nothing to do
97
97
                try {
98
98
                    Thread.sleep(Integer.MAX_VALUE);
99
 
                    PluginDebug.debug("Consumer thread " + id + " sleeping...");
 
99
                    PluginDebug.debug("Consumer thread ", id, " sleeping...");
100
100
                } catch (InterruptedException ie) {
101
 
                    PluginDebug.debug("Consumer thread " + id + " woken...");
 
101
                    PluginDebug.debug("Consumer thread ", id, " woken...");
102
102
                    // nothing.. someone woke us up, see if there 
103
103
                    // is work to do
104
104
                }