Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task -> thread #8522

Closed
wants to merge 0 commits into from
Closed

task -> thread #8522

wants to merge 0 commits into from

Conversation

@ajnirp
Copy link
Contributor

ajnirp commented Nov 13, 2015

for #8512

yay for Python's os.walk

Review on Reviewable

@highfive
Copy link

highfive commented Nov 13, 2015

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
  • These commits modify layout code, but no reftests are modified. Please consider adding a reftest!
@Manishearth
Copy link
Member

Manishearth commented Nov 14, 2015

Reviewed 42 of 149 files at r1.
Review status: 31 of 125 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed.


ORGANIZATION.md, line 74 [r1] (raw file):
Don't think this should have been renamed. Not sure/.


ports/cef/interfaces/cef_render_process_handler.rs, line 116 [r1] (raw file):
I think "task" is CEF language, so it shouldn't be replaced. ditto for everything else in cef/x


Comments from the review on Reviewable.io

@ajnirp
Copy link
Contributor Author

ajnirp commented Nov 14, 2015

Review status: 31 of 125 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed.


ORGANIZATION.md, line 74 [r1] (raw file):
i'm awaiting confirmation to roll back the renaming


ports/cef/interfaces/cef_render_process_handler.rs, line 116 [r1] (raw file):
reverted


Comments from the review on Reviewable.io

@jdm
Copy link
Member

jdm commented Nov 14, 2015

@ajnirp
Copy link
Contributor Author

ajnirp commented Nov 20, 2015

(ping)

@jdm jdm self-assigned this Nov 20, 2015
@Manishearth
Copy link
Member

Manishearth commented Nov 24, 2015

Reviewed 106 of 149 files at r1.
Review status: 109 of 115 files reviewed at latest revision, 3 unresolved discussions, some commit checks failed.


components/profile/Cargo.toml, line 32 [r1] (raw file):
did we rename this dep?xc


Comments from the review on Reviewable.io

@Manishearth
Copy link
Member

Manishearth commented Nov 24, 2015

Reviewed 4 of 13 files at r2, 10 of 10 files at r3.
Review status: all files reviewed at latest revision, 3 unresolved discussions, some commit checks failed.


Comments from the review on Reviewable.io

@ajnirp
Copy link
Contributor Author

ajnirp commented Nov 24, 2015

Review status: all files reviewed at latest revision, 3 unresolved discussions, some commit checks failed.


components/profile/Cargo.toml, line 32 [r1] (raw file):
oops


Comments from the review on Reviewable.io

@@ -300,7 +300,7 @@ impl<QueueData: Sync, WorkData: Send> WorkQueue<QueueData, WorkData> {
self.work_count += 1
}

/// Synchronously runs all the enqueued tasks and waits for them to complete.
/// Synchronously runs all the enqueued threads and waits for them to complete.

This comment has been minimized.

@jdm

jdm Nov 25, 2015

Member

This should be reverted.

@@ -47,15 +47,15 @@ use std::mem;
use std::ptr;

//
// Implement this structure for asynchronous task execution. If the task is
// Implement this structure for asynchronous thread execution. If the thread is

This comment has been minimized.

@jdm

jdm Nov 25, 2015

Member

The changes to this file will need to be reverted, since it's a CEF API.

@@ -466,13 +466,13 @@ impl WebSocketMethods for WebSocket {
}


/// Task queued when *the WebSocket connection is established*.
struct ConnectionEstablishedTask {
/// Thread queued when *the WebSocket connection is established*.

This comment has been minimized.

@jdm

jdm Nov 25, 2015

Member

The changes for this type and comment should be reverted.

@@ -496,11 +496,11 @@ impl Runnable for ConnectionEstablishedTask {
}
}

struct BufferedAmountTask {
struct BufferedAmountThread {

This comment has been minimized.

@jdm

jdm Nov 25, 2015

Member

Please revert this change.

@@ -514,11 +514,11 @@ impl Runnable for BufferedAmountTask {
}
}

struct CloseTask {
struct CloseThread {

This comment has been minimized.

@jdm

jdm Nov 25, 2015

Member

Please revert this.

@@ -551,16 +551,16 @@ impl Runnable for CloseTask {
}
}

struct MessageReceivedTask {
struct MessageReceivedThread {

This comment has been minimized.

@jdm

jdm Nov 25, 2015

Member

Please revert this.

fn perform_annotated_read_operation(gen_id: GenerationId, data: ReadMetaData, blob_contents: Receiver<Vec<u8>>,
filereader: TrustedFileReader, script_chan: Box<ScriptChan + Send>) {
let chan = &script_chan;
// Step 4
let task = box FileReaderEvent::ProcessRead(filereader.clone(), gen_id);
chan.send(CommonScriptMsg::RunnableMsg(FileRead, task)).unwrap();
let thread = box FileReaderEvent::ProcessRead(filereader.clone(), gen_id);

This comment has been minimized.

@jdm

jdm Nov 25, 2015

Member

This rename should be reverted.

@@ -404,27 +404,27 @@ impl Runnable for FileReaderEvent {
}
}

// https://w3c.github.io/FileAPI/#task-read-operation
// https://w3c.github.io/FileAPI/#thread-read-operation

This comment has been minimized.

@jdm

jdm Nov 25, 2015

Member

This needs to be reverted.


let task = box FileReaderEvent::ProcessReadData(filereader.clone(), gen_id);
chan.send(CommonScriptMsg::RunnableMsg(FileRead, task)).unwrap();
let thread = box FileReaderEvent::ProcessReadData(filereader.clone(), gen_id);

This comment has been minimized.

@jdm

jdm Nov 25, 2015

Member

Revert.


let bytes = match blob_contents.recv() {
Ok(bytes) => bytes,
Err(_) => {
let task = box FileReaderEvent::ProcessReadError(filereader,
let thread = box FileReaderEvent::ProcessReadError(filereader,

This comment has been minimized.

@jdm

jdm Nov 25, 2015

Member

Revert.

return;
}
};

let task = box FileReaderEvent::ProcessReadEOF(filereader, gen_id, data, bytes);
chan.send(CommonScriptMsg::RunnableMsg(FileRead, task)).unwrap();
let thread = box FileReaderEvent::ProcessReadEOF(filereader, gen_id, data, bytes);

This comment has been minimized.

@jdm

jdm Nov 25, 2015

Member

Revert.

@@ -248,20 +248,20 @@ impl WebSocket {
Ok(channel) => channel,
Err(e) => {
debug!("Failed to establish a WebSocket connection: {:?}", e);
let task = box CloseTask {
let thread = box CloseThread {

This comment has been minimized.

@jdm

jdm Nov 25, 2015

Member

Revert.

return;
}
};
let ws_sender = Arc::new(Mutex::new(ws_sender));

let open_task = box ConnectionEstablishedTask {
let open_thread = box ConnectionEstablishedThread {

This comment has been minimized.

@jdm

jdm Nov 25, 2015

Member

Revert.

@@ -274,19 +274,19 @@ impl WebSocket {
Ok(Message::Pong(_)) => continue,
Ok(Message::Close(data)) => {
ws_sender.lock().unwrap().send_message(Message::Close(data)).unwrap();
let task = box CloseTask {
let thread = box CloseThread {

This comment has been minimized.

@jdm

jdm Nov 25, 2015

Member

Revert.

break;
},
Err(_) => break,
};
let message_task = box MessageReceivedTask {
let message_thread = box MessageReceivedThread {

This comment has been minimized.

@jdm

jdm Nov 25, 2015

Member

Revert.

@@ -327,11 +327,11 @@ impl WebSocket {
if !self.clearing_buffer.get() && self.ready_state.get() == WebSocketRequestState::Open {
self.clearing_buffer.set(true);

let task = box BufferedAmountTask {
let thread = box BufferedAmountThread {

This comment has been minimized.

@jdm

jdm Nov 25, 2015

Member

Revert.

address: Trusted<WebSocket>,
message: MessageData,
}

impl Runnable for MessageReceivedTask {
impl Runnable for MessageReceivedThread {

This comment has been minimized.

@jdm

jdm Nov 25, 2015

Member

Revert.

@jdm
Copy link
Member

jdm commented Nov 25, 2015

@bors-servo: delegate+
With those changes and a rebase this should be good to land.

@bors-servo
Copy link
Contributor

bors-servo commented Nov 25, 2015

✌️ @wenderen can now approve this pull request

@jdm jdm removed the S-awaiting-review label Nov 25, 2015
@KiChjang
Copy link
Member

KiChjang commented Dec 20, 2015

@wenderen What's the status of this?

@ajnirp
Copy link
Contributor Author

ajnirp commented Dec 28, 2015

@KiChjang apologies for the late response, I was on vacation until yesterday.

The rebase is halfway complete (I abandoned the old rebase and re-fetched, so some of my former progress was lost). Should be done by tomorrow night.

@ajnirp ajnirp force-pushed the ajnirp:8512-rename-task-to-thread branch from 08f3391 to 7eaf55d Dec 29, 2015
@ajnirp
Copy link
Contributor Author

ajnirp commented Dec 29, 2015

rebased, squashed and pushed

@jdm
Copy link
Member

jdm commented Dec 29, 2015

@wenderen There are still some incorrect renames that I identified that require addressing, if you've got the time.

@ajnirp
Copy link
Contributor Author

ajnirp commented Dec 29, 2015

@jdm Sure, which renames?

@jdm
Copy link
Member

jdm commented Dec 29, 2015

@wenderen See all the comments on the earlier comments further up the page. The ones that are still visible haven't been addressed.

@ajnirp ajnirp force-pushed the ajnirp:8512-rename-task-to-thread branch from 3142e28 to fbd0f85 Dec 29, 2015
@bors-servo
Copy link
Contributor

bors-servo commented Dec 30, 2015

The latest upstream changes (presumably #9083) made this pull request unmergeable. Please resolve the merge conflicts.

@ajnirp ajnirp closed this Dec 30, 2015
@ajnirp ajnirp force-pushed the ajnirp:8512-rename-task-to-thread branch from fbd0f85 to 0f5c614 Dec 30, 2015
@ajnirp
Copy link
Contributor Author

ajnirp commented Dec 30, 2015

Oops. How do I reopen this?

@frewsxcv
Copy link
Member

frewsxcv commented Dec 30, 2015

You might have deleted the branch. It'd probably be easier just to open a new pr

@ajnirp ajnirp deleted the ajnirp:8512-rename-task-to-thread branch Jan 8, 2016
@ajnirp
Copy link
Contributor Author

ajnirp commented Jan 8, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

7 participants
You can’t perform that action at this time.